mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-22 15:25:22 +00:00
Fix flaviut/nre#20
This commit is contained in:
@@ -8,6 +8,7 @@ suite "string splitting":
|
||||
check("1 2".split(re(" ")) == @["1", "2"])
|
||||
check("foo".split(re("foo")) == @["", ""])
|
||||
check("".split(re"foo") == @[""])
|
||||
check("9".split(re"\son\s") == @["9"])
|
||||
|
||||
test "captured patterns":
|
||||
check("12".split(re"(\d)") == @["", "1", "", "2", ""])
|
||||
|
||||
Reference in New Issue
Block a user