Add additional tests for match

This commit is contained in:
Flaviu Tamas
2015-01-16 19:12:05 -05:00
parent 1a5401ebcf
commit d4450aa1ee
2 changed files with 7 additions and 0 deletions

6
test/match.nim Normal file
View File

@@ -0,0 +1,6 @@
include nre, unittest
suite "match":
test "upper bound must be exclusive":
check("abc".match(re"abc", endpos = 0) == nil)
check("abc".match(re"abc", endpos = 3) != nil)

View File

@@ -3,3 +3,4 @@ import init
import captures
import find
import split
import match