summaryrefslogtreecommitdiffstats
path: root/unittests
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2017-07-14 02:03:03 +0000
committerEric Christopher <echristo@gmail.com>2017-07-14 02:03:03 +0000
commit236b498c614a27d8aa76cc13a4aeae873e0484aa (patch)
treeb92bfeb4ae3f0f541f2f9b6dc232948948fdf0e4 /unittests
parent549561b9ed697326f27d4d0c0d8658cbd794582e (diff)
Use EXPECT_TRUE rather than EXPECT_EQ(true, ...) to clean up the code and silence a null conversion warning.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@307989 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'unittests')
-rw-r--r--unittests/ASTMatchers/Dynamic/ParserTest.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/unittests/ASTMatchers/Dynamic/ParserTest.cpp b/unittests/ASTMatchers/Dynamic/ParserTest.cpp
index ed184a8c14..0c4c7dfd78 100644
--- a/unittests/ASTMatchers/Dynamic/ParserTest.cpp
+++ b/unittests/ASTMatchers/Dynamic/ParserTest.cpp
@@ -80,8 +80,8 @@ TEST(ParserTest, ParseBoolean) {
Sema.parse("true");
Sema.parse("false");
EXPECT_EQ(2U, Sema.Values.size());
- EXPECT_EQ(true, Sema.Values[0].getBoolean());
- EXPECT_EQ(false, Sema.Values[1].getBoolean());
+ EXPECT_TRUE(Sema.Values[0].getBoolean());
+ EXPECT_FALSE(Sema.Values[1].getBoolean());
}
TEST(ParserTest, ParseDouble) {