... ------- Str::lstrip ------- () (#) (#) (#) () ( ) ( ) ( # ) ------- Str::rstrip ------- () (#) (#) ( #) (#) () ( ) ( ) ( # ) ------- Str::strip ------- () () () (##) (hi) ---------- Done ---------- . ------- Str::upper ------- () (UPPER) (UPPER_UPPER) ------- Str::lower ------- () (lower) (lower_lower) ---------- Done ---------- . ----- Str::replace ------- (-- cd -- ef) (---- cd ---- ef) (0) (0) (ab cd ab ef) (ab cd ab 0) (ab cd ab e0) (0 0 0) (000) (0000) ( 123) ( 123) (abc 123) (bbbb) (bbbbbb) . ------- Str::ljust ------- () (_) (____) (x) (x) (x_) (xx) (xx) (xx) (xx) (xx__) ------- Str::rjust ------- () (_) (____) (x) (x) (_x) (xx) (xx) (xx) (xx) (__xx) ---------- Done ---------- . ------- Str::slice ------- (abcde) (bcde) () (abcdef) (abcdef) () () (f) () () () () () () () () () () ---------- Done ---------- . ------- str_concat ------- () (a) (aa) (b) (bb) (ab) (aab) (abb) (aabb) ------- str_concat3 ------- () (a) (ab) (abc) (ac) (aa) (aab) (aabc) (aac) ---------- Done ---------- . ------- to_int ------- (0) -> (0) (1) -> (1) (-1) -> (-1) (100) -> (100) (2147483647) -> (2147483647) (-2147483648) -> (-2147483648) ---------- Done ---------- . str_contains .------ Str::helpers ------ ---------- Done ---------- . ------- Str::split ------- (abc def) (abc) (def) () () () () ( ) () () ( ) () (#) () ( ) () () ( ) () () (a) (b) (c) (d) (e) (f) (g) (a) (b) (c) (d,e,f,g) (a,b,c,d,e,f,g) () () (#) ---------- Done ---------- . -------- Str::join ------- () () (one string) (abcdef) (abc def abc def abc def abc def) ---------- Done ---------- ..f1212d f123123 f123x123 foo .--- len = 1 --- len = 2 --- len = 3 --- len = 2 --- len = 3 --- len = 4 --- len = 3 0 [] 0 [] 1 [] 0 [] 1 [] 2 [] 0 [a] 1 [b] 0 [abc] 1 [def] 2 [] 0 [] 1 [abc] 2 [def] 3 [] 0 [abc] 1 [def] 2 [ghi] .char funcs slice() strip() startswith endswith rjust() and ljust() join() .ord() chr() str_concat() str_repeat() repr() 'A' '' "'" 'NUL \x00 NUL' 'tab\tline\nline\r\n' 'high \xff \xfe high' .f o o d . Total: 20 tests (538 ticks, 0.001 sec), 314 assertions Pass: 20, fail: 0, skip: 0.