From 236b498c614a27d8aa76cc13a4aeae873e0484aa Mon Sep 17 00:00:00 2001 From: Eric Christopher Date: Fri, 14 Jul 2017 02:03:03 +0000 Subject: [PATCH] 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 --- unittests/ASTMatchers/Dynamic/ParserTest.cpp | 4 ++-- 1 file 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) { -- 2.50.1