parent
4b5cecd902
commit
0ff4b2ba7e
2 changed files with 13 additions and 4 deletions
|
|
@ -108,4 +108,10 @@ proc testAll() =
|
|||
doAssert replace("foo", re"", "-") == "-f-o-o-"
|
||||
doAssert replace("ooo", re"o", "-") == "---"
|
||||
|
||||
block: # bug #14468
|
||||
accum = @[]
|
||||
for word in split("this is an example", re"\b"):
|
||||
accum.add(word)
|
||||
doAssert(accum == @["this", " ", "is", " ", "an", " ", "example"])
|
||||
|
||||
testAll()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue