diff options
author | Eugene Sandulenko | 2016-10-09 15:02:02 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2016-10-09 15:02:02 +0200 |
commit | 355c4fa646c375c2ac42450871ff3d9221d1719d (patch) | |
tree | 81ef00feaedcd66821c56b7ae576ca068f8c997b /test/common/str.h | |
parent | dead4aa01446da2bf711e64a4e681be460fa1202 (diff) | |
download | scummvm-rg350-355c4fa646c375c2ac42450871ff3d9221d1719d.tar.gz scummvm-rg350-355c4fa646c375c2ac42450871ff3d9221d1719d.tar.bz2 scummvm-rg350-355c4fa646c375c2ac42450871ff3d9221d1719d.zip |
JANITORIAL: Remove more trailing spaces
Diffstat (limited to 'test/common/str.h')
-rw-r--r-- | test/common/str.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/test/common/str.h b/test/common/str.h index 461b26088a..c59c5a5efd 100644 --- a/test/common/str.h +++ b/test/common/str.h @@ -438,16 +438,16 @@ class StringTestSuite : public CxxTest::TestSuite // Using iterators (also a terribly useless program as a test). testString.replace(testString.begin(), testString.end(), "That is the supernew string."); - TS_ASSERT_EQUALS(testString, Common::String("That is the supernew string.")); - + TS_ASSERT_EQUALS(testString, Common::String("That is the supernew string.")); + // With sub strings of character arrays. testString.replace(21, 6, "That phrase is new.", 5, 6); TS_ASSERT_EQUALS(testString, Common::String("That is the supernew phrase.")); - // Now with substrings. + // Now with substrings. testString.replace(12, 2, Common::String("That hy is new."), 5, 2); TS_ASSERT_EQUALS(testString, Common::String("That is the hypernew phrase.")); - + // -------------------------- // Tests with displacement // -------------------------- @@ -463,20 +463,20 @@ class StringTestSuite : public CxxTest::TestSuite // Using iterators (also a terribly useless program as a test) testString.replace(testString.begin() + 4, testString.begin() + 5, " coffee "); - TS_ASSERT_EQUALS(testString, Common::String("Good coffee friends")); + TS_ASSERT_EQUALS(testString, Common::String("Good coffee friends")); // With sub strings of character arrays testString.replace(4, 0, "Lorem ipsum expresso dolor sit amet", 11, 9); TS_ASSERT_EQUALS(testString, Common::String("Good expresso coffee friends")); - - // Now with substrings + + // Now with substrings testString.replace(5, 9, Common::String("Displaced ristretto string"), 10, 10); TS_ASSERT_EQUALS(testString, Common::String("Good ristretto coffee friends")); - + // ----------------------- // Deep copy compliance // ----------------------- - + // Makes a deep copy without changing the length of the original Common::String s1 = "TestTestTestTestTestTestTestTestTestTestTest"; Common::String s2(s1); |