Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(490)

Unified Diff: Source/wtf/tests/WTFString.cpp

Issue 23819029: String vector's comparison works wrong (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | Source/wtf/text/WTFString.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/wtf/tests/WTFString.cpp
diff --git a/Source/wtf/tests/WTFString.cpp b/Source/wtf/tests/WTFString.cpp
index 4a7b976832257c9070d93fc38009d5ac91b6635b..86e80ca0d8f4f03e73591221670fcfa19b041bd9 100644
--- a/Source/wtf/tests/WTFString.cpp
+++ b/Source/wtf/tests/WTFString.cpp
@@ -154,4 +154,17 @@ TEST(WTF, StringReplaceWithLiteral)
ASSERT_STREQ("résumé", testString.utf8().data());
}
+TEST(WTF, StringComparisonOfSameStringVectors)
+{
+ Vector<String> stringVector;
+ stringVector.append("one");
+ stringVector.append("two");
+
+ Vector<String> sameStringVector;
+ sameStringVector.append("one");
+ sameStringVector.append("two");
+
+ ASSERT_EQ(stringVector, sameStringVector);
+}
+
} // namespace
« no previous file with comments | « no previous file | Source/wtf/text/WTFString.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698