diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2013-08-08 11:17:39 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2013-08-08 11:17:39 +0000 |
commit | 6ee0581f426fcee4ba32218a78d2d75d412010dc (patch) | |
tree | 9b2adda5f65cecda79a6e4fcb4c09453c51ffed0 /unittests/Support | |
parent | b1dc93913f969a2da1ba435332b7f3ff98756851 (diff) | |
download | external_llvm-6ee0581f426fcee4ba32218a78d2d75d412010dc.zip external_llvm-6ee0581f426fcee4ba32218a78d2d75d412010dc.tar.gz external_llvm-6ee0581f426fcee4ba32218a78d2d75d412010dc.tar.bz2 |
Use EXPECT_TRUE/EXPECT_FALSE to avoid bogus warnings from the guts of gtest.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@187976 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'unittests/Support')
-rw-r--r-- | unittests/Support/LocaleTest.cpp | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/unittests/Support/LocaleTest.cpp b/unittests/Support/LocaleTest.cpp index ad90bdf..81d31b9 100644 --- a/unittests/Support/LocaleTest.cpp +++ b/unittests/Support/LocaleTest.cpp @@ -67,33 +67,33 @@ TEST(Locale, columnWidth) { } TEST(Locale, isPrint) { - EXPECT_EQ(false, isPrint(0)); // <control-0000>-<control-001F> - EXPECT_EQ(false, isPrint(0x01)); - EXPECT_EQ(false, isPrint(0x1F)); - EXPECT_EQ(true, isPrint(' ')); - EXPECT_EQ(true, isPrint('A')); - EXPECT_EQ(true, isPrint('~')); - EXPECT_EQ(false, isPrint(0x7F)); // <control-007F>..<control-009F> - EXPECT_EQ(false, isPrint(0x90)); - EXPECT_EQ(false, isPrint(0x9F)); - - EXPECT_EQ(true, isPrint(0xAC)); - EXPECT_EQ(true, isPrint(0xAD)); // SOFT HYPHEN is displayed on most terminals - // as either a space or a dash. - EXPECT_EQ(true, isPrint(0xAE)); + EXPECT_FALSE(isPrint(0)); // <control-0000>-<control-001F> + EXPECT_FALSE(isPrint(0x01)); + EXPECT_FALSE(isPrint(0x1F)); + EXPECT_TRUE(isPrint(' ')); + EXPECT_TRUE(isPrint('A')); + EXPECT_TRUE(isPrint('~')); + EXPECT_FALSE(isPrint(0x7F)); // <control-007F>..<control-009F> + EXPECT_FALSE(isPrint(0x90)); + EXPECT_FALSE(isPrint(0x9F)); + + EXPECT_TRUE(isPrint(0xAC)); + EXPECT_TRUE(isPrint(0xAD)); // SOFT HYPHEN is displayed on most terminals + // as either a space or a dash. + EXPECT_TRUE(isPrint(0xAE)); // MacOS implementation doesn't think it's printable. #ifndef __APPLE__ - EXPECT_EQ(true, isPrint(0x0377)); // GREEK SMALL LETTER PAMPHYLIAN DIGAMMA + EXPECT_TRUE(isPrint(0x0377)); // GREEK SMALL LETTER PAMPHYLIAN DIGAMMA #endif // __APPLE__ - EXPECT_EQ(false, isPrint(0x0378)); // <reserved-0378>..<reserved-0379> + EXPECT_FALSE(isPrint(0x0378)); // <reserved-0378>..<reserved-0379> - EXPECT_EQ(false, isPrint(0x0600)); // ARABIC NUMBER SIGN + EXPECT_FALSE(isPrint(0x0600)); // ARABIC NUMBER SIGN - EXPECT_EQ(false, isPrint(0x1FFFF)); // <reserved-1F774>..<noncharacter-1FFFF> - EXPECT_EQ(true, isPrint(0x20000)); // CJK UNIFIED IDEOGRAPH-20000 + EXPECT_FALSE(isPrint(0x1FFFF)); // <reserved-1F774>..<noncharacter-1FFFF> + EXPECT_TRUE(isPrint(0x20000)); // CJK UNIFIED IDEOGRAPH-20000 - EXPECT_EQ(false, isPrint(0x10FFFF)); // noncharacter + EXPECT_FALSE(isPrint(0x10FFFF)); // noncharacter } #endif // _WIN32 |