diff options
author | Mike Buland <eichlan@xagasoft.com> | 2011-03-29 04:01:45 +0000 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2011-03-29 04:01:45 +0000 |
commit | c7636dc954eddfe58f7959392602fbc9072d77e7 (patch) | |
tree | bef0b41561287ead10b5a17ccaa8a66c45efa6a1 /src/unit | |
parent | 86e3e2ed03a4889cf64a9149f1f0f5047a889c56 (diff) | |
download | libbu++-c7636dc954eddfe58f7959392602fbc9072d77e7.tar.gz libbu++-c7636dc954eddfe58f7959392602fbc9072d77e7.tar.bz2 libbu++-c7636dc954eddfe58f7959392602fbc9072d77e7.tar.xz libbu++-c7636dc954eddfe58f7959392602fbc9072d77e7.zip |
String's replace function now doesn't get false positives on partial matches at
the end of strings. Build should work much better now.
Diffstat (limited to 'src/unit')
-rw-r--r-- | src/unit/string.unit | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/unit/string.unit b/src/unit/string.unit index 8f65c70..4911597 100644 --- a/src/unit/string.unit +++ b/src/unit/string.unit | |||
@@ -340,6 +340,13 @@ suite String | |||
340 | unitTest( a.replace("i", "ooo") == "Thooos ooos a test." ); | 340 | unitTest( a.replace("i", "ooo") == "Thooos ooos a test." ); |
341 | } | 341 | } |
342 | 342 | ||
343 | test replace2 | ||
344 | { | ||
345 | Bu::String a; | ||
346 | a = "aaaboostuffb"; | ||
347 | unitTest( a.replace("boo", "/") == "aaa/stuffb" ); | ||
348 | } | ||
349 | |||
343 | test coreDerefBug1 | 350 | test coreDerefBug1 |
344 | { | 351 | { |
345 | Bu::String a, b; | 352 | Bu::String a, b; |