diff options
author | Mike Buland <eichlan@xagasoft.com> | 2009-02-27 15:21:33 +0000 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2009-02-27 15:21:33 +0000 |
commit | 7433ec9074051ea5d9f91458e2e91e29ec8020f2 (patch) | |
tree | 1e2d95a54c03c9c2129be8ec20acaf9ee7e45db0 /src/unit | |
parent | e198e10ffd710e9681635593dff65bf4abd45bda (diff) | |
download | libbu++-7433ec9074051ea5d9f91458e2e91e29ec8020f2.tar.gz libbu++-7433ec9074051ea5d9f91458e2e91e29ec8020f2.tar.bz2 libbu++-7433ec9074051ea5d9f91458e2e91e29ec8020f2.tar.xz libbu++-7433ec9074051ea5d9f91458e2e91e29ec8020f2.zip |
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.
Diffstat (limited to '')
-rw-r--r-- | src/unit/fstring.unit | 9 |
1 files changed, 9 insertions, 0 deletions
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 @@ | |||
129 | unitTest( c == "Hello/Dude" ); | 129 | unitTest( c == "Hello/Dude" ); |
130 | } | 130 | } |
131 | 131 | ||
132 | {%add7} | ||
133 | { | ||
134 | const Bu::FString a("hello "); | ||
135 | Bu::FString b(" how "); | ||
136 | unitTest( a == "hello " ); | ||
137 | unitTest( a + "dude" == "hello dude" ); | ||
138 | unitTest( a + "dude" + b + "are you?" == "hello dude how are you?" ); | ||
139 | } | ||
140 | |||
132 | {%subStr1} | 141 | {%subStr1} |
133 | { | 142 | { |
134 | Bu::FString a("abcdefghijklmnop"); | 143 | Bu::FString a("abcdefghijklmnop"); |