summary refs log tree commit diff stats
path: root/lib
diff options
context:
space:
mode:
authorChris Heller <chris.heller@greyheller.com>2016-12-21 22:24:08 -0800
committerChris Heller <chris.heller@greyheller.com>2016-12-21 22:24:08 -0800
commit7ad32ea0edc3f980f54b4bdd50ff9ac09bf74c8b (patch)
treeab029578d588f6e828d8f495ff2b77af9e69a503 /lib
parentaf63bd4e0b45bad7985de829d311a8c84a99006b (diff)
downloadNim-7ad32ea0edc3f980f54b4bdd50ff9ac09bf74c8b.tar.gz
Change error handling in split to use doAssert so it is not compiled out when running tests
Diffstat (limited to 'lib')
-rw-r--r--lib/pure/strutils.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pure/strutils.nim b/lib/pure/strutils.nim
index 314c94909..8b5db49ed 100644
--- a/lib/pure/strutils.nim
+++ b/lib/pure/strutils.nim
@@ -808,7 +808,7 @@ proc split*(s: string, sep: string, maxsplit: int = -1): seq[string] {.noSideEff
   ##
   ## Substrings are separated by the string `sep`. This is a wrapper around the
   ## `split iterator <#split.i,string,string>`_.
-  assert(sep.len > 0)
+  doAssert(sep.len > 0)
   
   accumulateResult(split(s, sep, maxsplit))