aboutsummaryrefslogtreecommitdiff
path: root/src/unit/string.unit
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2011-03-29 04:01:45 +0000
committerMike Buland <eichlan@xagasoft.com>2011-03-29 04:01:45 +0000
commitc7636dc954eddfe58f7959392602fbc9072d77e7 (patch)
treebef0b41561287ead10b5a17ccaa8a66c45efa6a1 /src/unit/string.unit
parent86e3e2ed03a4889cf64a9149f1f0f5047a889c56 (diff)
downloadlibbu++-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 '')
-rw-r--r--src/unit/string.unit7
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;