diff options
author | epoger@google.com <epoger@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-10-29 16:42:11 +0000 |
---|---|---|
committer | epoger@google.com <epoger@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-10-29 16:42:11 +0000 |
commit | e8ebeb1f8fde6525bbab988c6090a5d3ab19855b (patch) | |
tree | 5e7185a6bcfe4a99bca383a649d303e525b3fd07 /tests | |
parent | 549c93ef979aeb4dcb65b3d0fca4b58e8ab62227 (diff) |
Add option to gm: write out images into a hierarchy, rather than a flat set of files
BUG=https://code.google.com/p/skia/issues/detail?id=743
Review URL: https://codereview.appspot.com/6810047
git-svn-id: http://skia.googlecode.com/svn/trunk@6167 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'tests')
-rw-r--r-- | tests/StringTest.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/StringTest.cpp b/tests/StringTest.cpp index 5ae718fed3..2c5026c682 100644 --- a/tests/StringTest.cpp +++ b/tests/StringTest.cpp @@ -57,10 +57,14 @@ static void TestString(skiatest::Reporter* reporter) { REPORTER_ASSERT(reporter, !a.equals("help")); REPORTER_ASSERT(reporter, a.startsWith("hell")); + REPORTER_ASSERT(reporter, a.startsWith('h')); REPORTER_ASSERT(reporter, !a.startsWith( "ell")); + REPORTER_ASSERT(reporter, !a.startsWith( 'e')); REPORTER_ASSERT(reporter, a.startsWith("")); REPORTER_ASSERT(reporter, a.endsWith("llo")); + REPORTER_ASSERT(reporter, a.endsWith('o')); REPORTER_ASSERT(reporter, !a.endsWith("ll" )); + REPORTER_ASSERT(reporter, !a.endsWith('l')); REPORTER_ASSERT(reporter, a.endsWith("")); REPORTER_ASSERT(reporter, a.contains("he")); REPORTER_ASSERT(reporter, a.contains("ll")); @@ -68,6 +72,8 @@ static void TestString(skiatest::Reporter* reporter) { REPORTER_ASSERT(reporter, a.contains("hello")); REPORTER_ASSERT(reporter, !a.contains("hellohello")); REPORTER_ASSERT(reporter, a.contains("")); + REPORTER_ASSERT(reporter, a.contains('e')); + REPORTER_ASSERT(reporter, !a.contains('z')); SkString e(a); SkString f("hello"); |