aboutsummaryrefslogtreecommitdiff
path: root/test/common
diff options
context:
space:
mode:
authorMax Horn2010-10-10 14:40:45 +0000
committerMax Horn2010-10-10 14:40:45 +0000
commitb1b41da650f5fd94f669becb284dd7c5b5bd8f87 (patch)
tree81dcc6ef556c47b9c5f6d863cd450ca8772e1240 /test/common
parenteeb85b54ab4cb08f5fef9f967cd6720f3a74a19f (diff)
downloadscummvm-rg350-b1b41da650f5fd94f669becb284dd7c5b5bd8f87.tar.gz
scummvm-rg350-b1b41da650f5fd94f669becb284dd7c5b5bd8f87.tar.bz2
scummvm-rg350-b1b41da650f5fd94f669becb284dd7c5b5bd8f87.zip
TEST: Use TS_ASSERT_EQUALS instead of TS_ASSERT + operator==
svn-id: r53121
Diffstat (limited to 'test/common')
-rw-r--r--test/common/str.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/test/common/str.h b/test/common/str.h
index 0dd075f848..0908b21c1e 100644
--- a/test/common/str.h
+++ b/test/common/str.h
@@ -316,14 +316,14 @@ class StringTestSuite : public CxxTest::TestSuite
}
void test_string_printf() {
- TS_ASSERT( Common::String::printf("") == "" );
- TS_ASSERT( Common::String::printf("%s", "test") == "test" );
- TS_ASSERT( Common::String::printf("%s.s%.02d", "monkey", 1) == "monkey.s01" );
- TS_ASSERT( Common::String::printf("Some %s to make this string longer than the default built-in %s %d", "text", "capacity", 123456) == "Some text to make this string longer than the default built-in capacity 123456" );
+ TS_ASSERT_EQUALS( Common::String::printf(""), "" );
+ TS_ASSERT_EQUALS( Common::String::printf("%s", "test"), "test" );
+ TS_ASSERT_EQUALS( Common::String::printf("%s.s%.02d", "monkey", 1), "monkey.s01" );
+ TS_ASSERT_EQUALS( Common::String::printf("Some %s to make this string longer than the default built-in %s %d", "text", "capacity", 123456), "Some text to make this string longer than the default built-in capacity 123456" );
Common::String s = Common::String::printf("%s%X", "test", 1234);
- TS_ASSERT(s == "test4D2");
- TS_ASSERT(s.size() == 7);
+ TS_ASSERT_EQUALS(s, "test4D2");
+ TS_ASSERT_EQUALS(s.size(), 7U);
}
void test_strlcpy() {