Add another split testcase

Thanks Oleh Prypin for the suggestion!
This commit is contained in:
Flaviu Tamas
2015-01-15 17:39:20 -05:00
parent d649cec033
commit c0c0920d19

View File

@@ -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")) == @["", ""])