From c7636dc954eddfe58f7959392602fbc9072d77e7 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Tue, 29 Mar 2011 04:01:45 +0000 Subject: String's replace function now doesn't get false positives on partial matches at the end of strings. Build should work much better now. --- src/unit/string.unit | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/unit') 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 unitTest( a.replace("i", "ooo") == "Thooos ooos a test." ); } + test replace2 + { + Bu::String a; + a = "aaaboostuffb"; + unitTest( a.replace("boo", "/") == "aaa/stuffb" ); + } + test coreDerefBug1 { Bu::String a, b; -- cgit v1.2.3