mirror of
https://github.com/nim-lang/Nim.git
synced 2026-07-19 07:21:19 +00:00
Add another split testcase
Thanks Oleh Prypin for the suggestion!
This commit is contained in:
@@ -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")) == @["", ""])
|
||||
|
||||
Reference in New Issue
Block a user