diff options
| author | Mike Buland <eichlan@xagasoft.com> | 2011-03-19 18:28:10 +0000 |
|---|---|---|
| committer | Mike Buland <eichlan@xagasoft.com> | 2011-03-19 18:28:10 +0000 |
| commit | d223fcaba3660e8c4d61c9136311064898e23ae9 (patch) | |
| tree | 58ac992b15667d814ddfd502640a54a1209e241e /src/unit | |
| parent | cba6293cf22e2c2ae17dd3954ad7d097f379c7ac (diff) | |
| download | libbu++-d223fcaba3660e8c4d61c9136311064898e23ae9.tar.gz libbu++-d223fcaba3660e8c4d61c9136311064898e23ae9.tar.bz2 libbu++-d223fcaba3660e8c4d61c9136311064898e23ae9.tar.xz libbu++-d223fcaba3660e8c4d61c9136311064898e23ae9.zip | |
The rest of libbu++ is corrected as far as the now Bu::String toUpper/toLower
semantics go as well as switching everything to the new string formatting code.
Diffstat (limited to '')
| -rw-r--r-- | src/unit/string.unit | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/unit/string.unit b/src/unit/string.unit index d38aa54..8f65c70 100644 --- a/src/unit/string.unit +++ b/src/unit/string.unit | |||
| @@ -407,6 +407,20 @@ suite String | |||
| 407 | unitTest( m1 == m2 ); | 407 | unitTest( m1 == m2 ); |
| 408 | unitTest( m1 == "\x03\xF0\x9C\xA4\xF5\x8A\xC8\xCA\x0E" ); | 408 | unitTest( m1 == "\x03\xF0\x9C\xA4\xF5\x8A\xC8\xCA\x0E" ); |
| 409 | } | 409 | } |
| 410 | |||
| 411 | test toUpper1 | ||
| 412 | { | ||
| 413 | Bu::String s1("HeLlO ThErE, HoW ArE YoU DoInG?"); | ||
| 414 | unitTest( s1.toUpper() == "HELLO THERE, HOW ARE YOU DOING?" ); | ||
| 415 | unitTest( s1 == "HeLlO ThErE, HoW ArE YoU DoInG?" ); | ||
| 416 | } | ||
| 417 | |||
| 418 | test toLower1 | ||
| 419 | { | ||
| 420 | Bu::String s1("HeLlO ThErE, HoW ArE YoU DoInG?"); | ||
| 421 | unitTest( s1.toLower() == "hello there, how are you doing?" ); | ||
| 422 | unitTest( s1 == "HeLlO ThErE, HoW ArE YoU DoInG?" ); | ||
| 423 | } | ||
| 410 | } | 424 | } |
| 411 | // 03F09CA4F58AC8CA0E80F0D9D409D0A60700A192270004BC3A99E91D0001034F544603362E35013103313130019CA4F58AC8CA0E0002830800002C4200008AC200EBF7D9D4090127BB010000E3 | 425 | // 03F09CA4F58AC8CA0E80F0D9D409D0A60700A192270004BC3A99E91D0001034F544603362E35013103313130019CA4F58AC8CA0E0002830800002C4200008AC200EBF7D9D4090127BB010000E3 |
| 412 | // | 426 | // |
