Add another split testcase
Thanks Oleh Prypin for the suggestion!
This commit is contained in:
parent
d649cec033
commit
c0c0920d19
1 changed files with 1 additions and 0 deletions
|
|
@ -7,3 +7,4 @@ suite "string splitting":
|
|||
check("1 2 3 4 5 6 ".split(initRegex(" ", "S")) == @["1", "2", "3", "4", "5", "6", ""])
|
||||
check("1 2 ".split(initRegex(" ", "S")) == @["1", "", "2", "", ""])
|
||||
check("1 2".split(initRegex(" ", "S")) == @["1", "2"])
|
||||
check("foo".split(initRegex("foo")) == @["", ""])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue