From 162525457320b5dba9a4e736759f840757635231 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Wed, 18 Jul 2007 07:17:10 +0000 Subject: Incorporated a patch contributed by Brandon CS Sanders that allows libbu++ to compile under OSX. So far, no problems with anything else, it looks like build and nango both build without problems, libbu++ is truly becoming a full cross- platform toolkit. --- src/unit/fstring.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/unit') diff --git a/src/unit/fstring.cpp b/src/unit/fstring.cpp index 2c6bf7a..462ce5e 100644 --- a/src/unit/fstring.cpp +++ b/src/unit/fstring.cpp @@ -9,6 +9,7 @@ public: setName("FString"); addTest( Unit::compare1 ); addTest( Unit::compare2 ); + addTest( Unit::appendSingle ); } virtual ~Unit() @@ -28,6 +29,14 @@ public: unitTest( !(b == "Bob") ); unitTest( b == "Bobo" ); } + + void appendSingle() + { + Bu::FString b; + for( char l = 'a'; l < 'g'; l++ ) + b += l; + unitTest( b == "abcdef" ); + } }; int main( int argc, char *argv[] ) -- cgit v1.2.3