]> granicus.if.org Git - clang/commitdiff
Use EXPECT_TRUE rather than EXPECT_EQ(true, ...) to clean up the code and silence...
authorEric Christopher <echristo@gmail.com>
Fri, 14 Jul 2017 02:03:03 +0000 (02:03 +0000)
committerEric Christopher <echristo@gmail.com>
Fri, 14 Jul 2017 02:03:03 +0000 (02:03 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@307989 91177308-0d34-0410-b5e6-96231b3b80d8

unittests/ASTMatchers/Dynamic/ParserTest.cpp

index ed184a8c149771a0240b35262d3654063619ce13..0c4c7dfd78023f300e63f2549e9898ab20fa8491 100644 (file)
@@ -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) {