diff options
| author | Matthew Parlane <parlane@gmail.com> | 2017-03-26 14:53:17 +1300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-03-26 14:53:17 +1300 |
| commit | e05b6cf3f4869788b69be0e126c0b9c2fe8b1cdd (patch) | |
| tree | 65c15739fe1bacd871dee2a28eeae91814039d91 /Source/UnitTests/Common/StringUtilTest.cpp | |
| parent | 89de08d649ad6452c4b4580966335601749817df (diff) | |
| parent | 04db3d5a50cf4deff6b385c3aef820b283800a4f (diff) | |
Merge pull request #5155 from ligfx/expecttruefalse
UnitTests: use EXPECT_TRUE/EXPECT_FALSE (fixes warnings)
Diffstat (limited to 'Source/UnitTests/Common/StringUtilTest.cpp')
| -rw-r--r-- | Source/UnitTests/Common/StringUtilTest.cpp | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/Source/UnitTests/Common/StringUtilTest.cpp b/Source/UnitTests/Common/StringUtilTest.cpp index 0a45c3b26a..98fdda1888 100644 --- a/Source/UnitTests/Common/StringUtilTest.cpp +++ b/Source/UnitTests/Common/StringUtilTest.cpp @@ -19,24 +19,24 @@ TEST(StringUtil, JoinStrings) TEST(StringUtil, StringBeginsWith) { - EXPECT_EQ(true, StringBeginsWith("abc", "a")); - EXPECT_EQ(false, StringBeginsWith("abc", "b")); - EXPECT_EQ(true, StringBeginsWith("abc", "ab")); - EXPECT_EQ(false, StringBeginsWith("a", "ab")); - EXPECT_EQ(false, StringBeginsWith("", "a")); - EXPECT_EQ(false, StringBeginsWith("", "ab")); - EXPECT_EQ(true, StringBeginsWith("abc", "")); - EXPECT_EQ(true, StringBeginsWith("", "")); + EXPECT_TRUE(StringBeginsWith("abc", "a")); + EXPECT_FALSE(StringBeginsWith("abc", "b")); + EXPECT_TRUE(StringBeginsWith("abc", "ab")); + EXPECT_FALSE(StringBeginsWith("a", "ab")); + EXPECT_FALSE(StringBeginsWith("", "a")); + EXPECT_FALSE(StringBeginsWith("", "ab")); + EXPECT_TRUE(StringBeginsWith("abc", "")); + EXPECT_TRUE(StringBeginsWith("", "")); } TEST(StringUtil, StringEndsWith) { - EXPECT_EQ(true, StringEndsWith("abc", "c")); - EXPECT_EQ(false, StringEndsWith("abc", "b")); - EXPECT_EQ(true, StringEndsWith("abc", "bc")); - EXPECT_EQ(false, StringEndsWith("a", "ab")); - EXPECT_EQ(false, StringEndsWith("", "a")); - EXPECT_EQ(false, StringEndsWith("", "ab")); - EXPECT_EQ(true, StringEndsWith("abc", "")); - EXPECT_EQ(true, StringEndsWith("", "")); + EXPECT_TRUE(StringEndsWith("abc", "c")); + EXPECT_FALSE(StringEndsWith("abc", "b")); + EXPECT_TRUE(StringEndsWith("abc", "bc")); + EXPECT_FALSE(StringEndsWith("a", "ab")); + EXPECT_FALSE(StringEndsWith("", "a")); + EXPECT_FALSE(StringEndsWith("", "ab")); + EXPECT_TRUE(StringEndsWith("abc", "")); + EXPECT_TRUE(StringEndsWith("", "")); } |
