|
1 | 1 | test "join strings":
|
2 |
| - assert join "a", "b", "c" is "abc" with "join strings without delimiter failed" |
3 |
| - assert join "a", "b", "c" with " " is "a b c" with "join strings with delimiter failed" |
| 2 | + assert join "a", "b" and "c" is "abc" with "join strings without delimiter failed" |
| 3 | + assert join "a", "b" and "c" with " " is "a b c" with "join strings with delimiter failed" |
4 | 4 |
|
5 | 5 | test "split strings on string":
|
6 | 6 | assert split "abc" at "[a-z]" is "abc" with "split with regex chars failed"
|
7 | 7 |
|
8 |
| - assert split "a b c" at " " is "a", "b", "c" with "split failed" |
9 |
| - assert split "a b c" at " " with case sensitivity is "a", "b", "c" with "split with case sensitivity failed" |
10 |
| - assert split "a b c" at " " without trailing string is "a", "b", "c" with "split without trailing string failed" |
| 8 | + assert split "a b c" at " " is "a", "b" and "c" with "split failed" |
| 9 | + assert split "a b c" at " " with case sensitivity is "a", "b" and "c" with "split with case sensitivity failed" |
| 10 | + assert split "a b c" at " " without trailing string is "a", "b" and "c" with "split without trailing string failed" |
11 | 11 |
|
12 |
| - assert split "abc" at "" is "a", "b", "c", "" with "split with empty delimiter failed" |
13 |
| - assert split "abc" at "" with case sensitivity is "a", "b", "c", "" with "split with empty delimiter with case sensitivity failed" |
14 |
| - assert split "abc" at "" without trailing string is "a", "b", "c" with "split with empty delimiter without trailing string failed" |
15 |
| - assert split "abc" at "" with case sensitivity without trailing string is "a", "b", "c" with "split with empty delimiter with case sensitivity without trailing string failed" |
| 12 | + assert split "abc" at "" is "a", "b", "c" and "" with "split with empty delimiter failed" |
| 13 | + assert split "abc" at "" with case sensitivity is "a", "b", "c" and "" with "split with empty delimiter with case sensitivity failed" |
| 14 | + assert split "abc" at "" without trailing string is "a", "b" and "c" with "split with empty delimiter without trailing string failed" |
| 15 | + assert split "abc" at "" with case sensitivity without trailing string is "a", "b" and "c" with "split with empty delimiter with case sensitivity without trailing string failed" |
16 | 16 |
|
17 |
| - assert split "-x-X" at "x" is "-", "-", "" with "split with delimiter at end failed" |
18 |
| - assert split "-x-X" at "x" with case sensitivity is "-", "-X" with "split with delimiter at end with case sensitivity failed" |
19 |
| - assert split "-x-X" at "x" without trailing string is "-", "-" with "split with delimiter at end without trailing string failed" |
20 |
| - assert split "-x-X" at "x" with case sensitivity without trailing string is "-", "-X" with "split with delimiter at end with case sensitivity without trailing string failed" |
| 17 | + assert split "-x-X" at "x" is "-", "-" and "" with "split with delimiter at end failed" |
| 18 | + assert split "-x-X" at "x" with case sensitivity is "-" and "-X" with "split with delimiter at end with case sensitivity failed" |
| 19 | + assert split "-x-X" at "x" without trailing string is "-" and "-" with "split with delimiter at end without trailing string failed" |
| 20 | + assert split "-x-X" at "x" with case sensitivity without trailing string is "-" and "-X" with "split with delimiter at end with case sensitivity without trailing string failed" |
21 | 21 |
|
22 | 22 | test "split strings on regex":
|
23 |
| - assert regex split "a b c" at " " is "a", "b", "c" with "regex split failed" |
24 |
| - assert regex split "a b_c" at "( |_)" is "a", "b", "c" with "regex split with regex failed" |
| 23 | + assert regex split "a b c" at " " is "a", "b" and "c" with "regex split failed" |
| 24 | + assert regex split "a b_c" at "( |_)" is "a", "b" and "c" with "regex split with regex failed" |
25 | 25 |
|
26 |
| - assert regex split "-a-b-c" at "[a-z]" is "-", "-", "-", "" with "regex split with delimiter at end failed" |
27 |
| - assert regex split "-a-b-c" at "[a-z]" without trailing string is "-", "-", "-" with "regex split with delimiter at end without trailing string failed" |
| 26 | + assert regex split "-a-b-c" at "[a-z]" is "-", "-", "-" and "" with "regex split with delimiter at end failed" |
| 27 | + assert regex split "-a-b-c" at "[a-z]" without trailing string is "-", "-" and "-" with "regex split with delimiter at end without trailing string failed" |
0 commit comments