aboutsummaryrefslogtreecommitdiff
path: root/llvm/unittests/ADT/APIntTest.cpp
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
commitbc3e8a7c933315511a7bed4c6d5aaa15004af027 (patch)
tree45c0cc331d9e62fdfc2cc725afdad86077b3d32e /llvm/unittests/ADT/APIntTest.cpp
parent46e8978c69aa4e6c8914ed2785394b4370aa7a23 (diff)
downloadllvm-bc3e8a7c933315511a7bed4c6d5aaa15004af027.zip
llvm-bc3e8a7c933315511a7bed4c6d5aaa15004af027.tar.gz
llvm-bc3e8a7c933315511a7bed4c6d5aaa15004af027.tar.bz2
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. llvm-svn: 108248
Diffstat (limited to 'llvm/unittests/ADT/APIntTest.cpp')
-rw-r--r--llvm/unittests/ADT/APIntTest.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/unittests/ADT/APIntTest.cpp b/llvm/unittests/ADT/APIntTest.cpp
index d08e86a..0cb7996 100644
--- a/llvm/unittests/ADT/APIntTest.cpp
+++ b/llvm/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) {