From 7ad32ea0edc3f980f54b4bdd50ff9ac09bf74c8b Mon Sep 17 00:00:00 2001 From: Chris Heller Date: Wed, 21 Dec 2016 22:24:08 -0800 Subject: [PATCH] Change error handling in split to use doAssert so it is not compiled out when running tests --- lib/pure/strutils.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/pure/strutils.nim b/lib/pure/strutils.nim index 314c94909a..8b5db49ed2 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))