aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/StringTest.cpp
diff options
context:
space:
mode:
authorGravatar tomhudson@google.com <tomhudson@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2011-06-30 14:39:52 +0000
committerGravatar tomhudson@google.com <tomhudson@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2011-06-30 14:39:52 +0000
commit3a1f6a06cc706b35d9d6086ffbf5135cbf42bf8a (patch)
tree2c7f1949a5da7f2ff0adfa4caf716ab7207ddb3a /tests/StringTest.cpp
parentb371ed1784fcc594131abb7fc2f76b0abd20ca9e (diff)
SkStringPrintf helper fucntion + a new unit test for it.
git-svn-id: http://skia.googlecode.com/svn/trunk@1766 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'tests/StringTest.cpp')
-rw-r--r--tests/StringTest.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/StringTest.cpp b/tests/StringTest.cpp
index 270ccfd3a4..02510d56dc 100644
--- a/tests/StringTest.cpp
+++ b/tests/StringTest.cpp
@@ -85,6 +85,8 @@ static void TestString(skiatest::Reporter* reporter) {
// SkDebugf(" received <%s> expected <%s>\n", a.c_str(), gRec[i].fString);
REPORTER_ASSERT(reporter, a.equals(gRec[i].fString));
}
+
+ REPORTER_ASSERT(reporter, SkStringPrintf("%i", 0).equals("0"));
}
#include "TestClassDef.h"