From d223fcaba3660e8c4d61c9136311064898e23ae9 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Sat, 19 Mar 2011 18:28:10 +0000 Subject: 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. --- src/unit/string.unit | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'src/unit') 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 unitTest( m1 == m2 ); unitTest( m1 == "\x03\xF0\x9C\xA4\xF5\x8A\xC8\xCA\x0E" ); } + + test toUpper1 + { + Bu::String s1("HeLlO ThErE, HoW ArE YoU DoInG?"); + unitTest( s1.toUpper() == "HELLO THERE, HOW ARE YOU DOING?" ); + unitTest( s1 == "HeLlO ThErE, HoW ArE YoU DoInG?" ); + } + + test toLower1 + { + Bu::String s1("HeLlO ThErE, HoW ArE YoU DoInG?"); + unitTest( s1.toLower() == "hello there, how are you doing?" ); + unitTest( s1 == "HeLlO ThErE, HoW ArE YoU DoInG?" ); + } } // 03F09CA4F58AC8CA0E80F0D9D409D0A60700A192270004BC3A99E91D0001034F544603362E35013103313130019CA4F58AC8CA0E0002830800002C4200008AC200EBF7D9D4090127BB010000E3 // -- cgit v1.2.3