summaryrefslogtreecommitdiff
path: root/unittests/ADT
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2010-07-13 17:28:05 +0000
committerChandler Carruth <chandlerc@gmail.com>2010-07-13 17:28:05 +0000
commit48b17fa5bebf46ecdbcb51ebab1c3d8b483afd3c (patch)
tree16dd60d4fe6f529077d3fe47a549b5151962cedd /unittests/ADT
parent9fea9c24fed5dad5854eebb1bc732b2549a93202 (diff)
downloadllvm-48b17fa5bebf46ecdbcb51ebab1c3d8b483afd3c.tar.gz
llvm-48b17fa5bebf46ecdbcb51ebab1c3d8b483afd3c.tar.bz2
llvm-48b17fa5bebf46ecdbcb51ebab1c3d8b483afd3c.tar.xz
Switch from EXPECT_EQ({true,false, ...) to the more canonical
EXPECT_{TRUE,FALSE}(...) macros. This also prevents suprious warnings about bool-to-pointer conversion that occurs withit EXPECT_EQ. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@108248 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'unittests/ADT')
-rw-r--r--unittests/ADT/APIntTest.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/unittests/ADT/APIntTest.cpp b/unittests/ADT/APIntTest.cpp
index d08e86abaa..0cb79963f5 100644
--- a/unittests/ADT/APIntTest.cpp
+++ b/unittests/ADT/APIntTest.cpp
@@ -20,8 +20,8 @@ namespace {
TEST(APIntTest, ShiftLeftByZero) {
APInt One = APInt::getNullValue(65) + 1;
APInt Shl = One.shl(0);
- EXPECT_EQ(true, Shl[0]);
- EXPECT_EQ(false, Shl[1]);
+ EXPECT_TRUE(Shl[0]);
+ EXPECT_FALSE(Shl[1]);
}
TEST(APIntTest, i128_NegativeCount) {