diff options
author | Chandler Carruth <chandlerc@gmail.com> | 2010-07-13 17:28:05 +0000 |
---|---|---|
committer | Chandler Carruth <chandlerc@gmail.com> | 2010-07-13 17:28:05 +0000 |
commit | 48b17fa5bebf46ecdbcb51ebab1c3d8b483afd3c (patch) | |
tree | 16dd60d4fe6f529077d3fe47a549b5151962cedd /unittests/ADT/APIntTest.cpp | |
parent | 9fea9c24fed5dad5854eebb1bc732b2549a93202 (diff) |
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/APIntTest.cpp')
-rw-r--r-- | unittests/ADT/APIntTest.cpp | 4 |
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) { |