Fix flaviut/nre#20
This commit is contained in:
parent
17cace280c
commit
90292754f5
2 changed files with 7 additions and 2 deletions
|
|
@ -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", ""])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue