From c0c0920d198381060c643af53a14e4b0751f5c39 Mon Sep 17 00:00:00 2001 From: Flaviu Tamas Date: Thu, 15 Jan 2015 17:39:20 -0500 Subject: [PATCH] Add another split testcase Thanks Oleh Prypin for the suggestion! --- test/split.nim | 1 + 1 file changed, 1 insertion(+) diff --git a/test/split.nim b/test/split.nim index aee5229916..dc12a2bb41 100644 --- a/test/split.nim +++ b/test/split.nim @@ -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")) == @["", ""])