summaryrefslogtreecommitdiff
path: root/src/unit
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2009-11-24 04:39:06 +0000
committerMike Buland <eichlan@xagasoft.com>2009-11-24 04:39:06 +0000
commit1f894ce98811eb8a2ab893db6c2d53cd77a111e7 (patch)
tree29c8fde4b73779b7e942291914b5d3feae81a972 /src/unit
parent2389e95360e37cd601e6b28cec47fef290c009d3 (diff)
downloadlibbu++-1f894ce98811eb8a2ab893db6c2d53cd77a111e7.tar.gz
libbu++-1f894ce98811eb8a2ab893db6c2d53cd77a111e7.tar.bz2
libbu++-1f894ce98811eb8a2ab893db6c2d53cd77a111e7.tar.xz
libbu++-1f894ce98811eb8a2ab893db6c2d53cd77a111e7.zip
Added a replace function to fstring...sweeet.
Diffstat (limited to 'src/unit')
-rw-r--r--src/unit/fstring.unit7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/unit/fstring.unit b/src/unit/fstring.unit
index d218a07..2f2eb69 100644
--- a/src/unit/fstring.unit
+++ b/src/unit/fstring.unit
@@ -333,3 +333,10 @@
333 unitTest( b == "Goodbye" ); 333 unitTest( b == "Goodbye" );
334} 334}
335 335
336{%replace1}
337{
338 Bu::FString a;
339 a = "This is a test.";
340 unitTest( a.replace("i", "ooo") == "Thooos ooos a test." );
341}
342