diff --git a/test/StringTest.cpp b/test/StringTest.cpp index 216f3862..6ebf4fbc 100644 --- a/test/StringTest.cpp +++ b/test/StringTest.cpp @@ -14,9 +14,13 @@ * limitations under the License. */ +#include #include #include +using ::testing::ElementsAre; +using ::testing::IsEmpty; + class EscapeTest : public ::testing::Test { protected: void testEncode(const CString& in, const CString& expectedOut, @@ -190,11 +194,11 @@ TEST(StringTest, Split) { // element (or zero elements if the input itself is empty). VCString vempty; EXPECT_EQ(CS("abc").Split("", vempty, false), 1u); - EXPECT_EQ(vempty, VCString({"abc"})); + EXPECT_THAT(vempty, ElementsAre("abc")); EXPECT_EQ(CS("abc").Split("", vempty, true), 1u); - EXPECT_EQ(vempty, VCString({"abc"})); + EXPECT_THAT(vempty, ElementsAre("abc")); EXPECT_EQ(CS("").Split("", vempty, false), 0u); - EXPECT_TRUE(vempty.empty()); + EXPECT_THAT(vempty, IsEmpty()); } TEST(StringTest, NamedFormat) {