From: Eric Christopher Date: Fri, 14 Jul 2017 02:03:03 +0000 (+0000) Subject: Use EXPECT_TRUE rather than EXPECT_EQ(true, ...) to clean up the code and silence... X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=236b498c614a27d8aa76cc13a4aeae873e0484aa;p=clang 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 --- 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) {