summary refs log tree commit diff stats
path: root/tests
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2015-06-19 01:28:18 +0200
committerAndreas Rumpf <rumpf_a@web.de>2015-06-19 01:28:18 +0200
commit37ff086c86129602c34f660cd4193c9a02273f81 (patch)
tree727e31dcc47d5479817d3988a628efedb03d8067 /tests
parentd7e680331c08a5bcd178f0f2184377cfa940e4a6 (diff)
parent90292754f579efca3672970a2f5d40630936d013 (diff)
downloadNim-37ff086c86129602c34f660cd4193c9a02273f81.tar.gz
Merge pull request #2940 from flaviut/fix-nre-20
Fix nre issue #20
Diffstat (limited to 'tests')
-rw-r--r--tests/stdlib/nre/split.nim1
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", ""])