Chromium Code Reviews| Index: tests/StringTest.cpp |
| diff --git a/tests/StringTest.cpp b/tests/StringTest.cpp |
| index 13ee5ec2153ff6da775bef64887fc16f759da2f4..33eec46eeb618ec13cd60e8dad40df697ad1534c 100644 |
| --- a/tests/StringTest.cpp |
| +++ b/tests/StringTest.cpp |
| @@ -148,6 +148,21 @@ DEF_TEST(String, reporter) { |
| a.appendU64(0x0000000001000000ULL, 15); |
| REPORTER_ASSERT(reporter, a.equals("000000016777216")); |
| + a.set("hello world"); |
|
tfarina
2014/06/13 17:02:10
If Elliot and Mike don't mind, could you set up a
|
| + a.replaceChar('h', 'h'); |
| + REPORTER_ASSERT(reporter, a.equals("hello world")); |
| + a.replaceChar('x', 'x'); |
| + REPORTER_ASSERT(reporter, a.equals("hello world")); |
| + a.replaceChar('o', 'e'); |
| + REPORTER_ASSERT(reporter, a.equals("helle werld")); |
| + a.replaceChar('x', 'e'); |
| + REPORTER_ASSERT(reporter, a.equals("helle werld")); |
| + a.replaceChar('x', 'z'); |
| + REPORTER_ASSERT(reporter, a.equals("helle werld")); |
| + a.set(""); |
| + a.replaceChar('a', 'b'); |
| + REPORTER_ASSERT(reporter, a.equals("")); |
| + |
| static const struct { |
| SkScalar fValue; |
| const char* fString; |