diff options
author | Flaviu Tamas <tamasflaviu@gmail.com> | 2015-06-16 20:10:32 -0400 |
---|---|---|
committer | Flaviu Tamas <tamasflaviu@gmail.com> | 2015-06-18 12:44:12 -0400 |
commit | 90292754f579efca3672970a2f5d40630936d013 (patch) | |
tree | 98b097d94366fc8ba293052838a8ac2cb53d6ec8 /tests | |
parent | 17cace280ca927a97adc21314141947210fe17b5 (diff) | |
download | Nim-90292754f579efca3672970a2f5d40630936d013.tar.gz |
Fix flaviut/nre#20
Diffstat (limited to 'tests')
-rw-r--r-- | tests/stdlib/nre/split.nim | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/stdlib/nre/split.nim b/tests/stdlib/nre/split.nim index 8064e40b7..9d57ea7d8 100644 --- a/tests/stdlib/nre/split.nim +++ b/tests/stdlib/nre/split.nim @@ -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", ""]) |