From 7433ec9074051ea5d9f91458e2e91e29ec8020f2 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Fri, 27 Feb 2009 15:21:33 +0000 Subject: Fixed a bug in Bu::FString, it wouldn't concatinate properly when using the + operator and the left-hand-side FString was const. Also, added a formatter << operator for Bu::List. The other containers should get their own formatter << operators soon too. --- src/unit/fstring.unit | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/unit') diff --git a/src/unit/fstring.unit b/src/unit/fstring.unit index a0d62da..fbebd39 100644 --- a/src/unit/fstring.unit +++ b/src/unit/fstring.unit @@ -129,6 +129,15 @@ unitTest( c == "Hello/Dude" ); } +{%add7} +{ + const Bu::FString a("hello "); + Bu::FString b(" how "); + unitTest( a == "hello " ); + unitTest( a + "dude" == "hello dude" ); + unitTest( a + "dude" + b + "are you?" == "hello dude how are you?" ); +} + {%subStr1} { Bu::FString a("abcdefghijklmnop"); -- cgit v1.2.3