Add additional tests for match
This commit is contained in:
parent
1a5401ebcf
commit
d4450aa1ee
2 changed files with 7 additions and 0 deletions
6
test/match.nim
Normal file
6
test/match.nim
Normal 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)
|
||||||
|
|
@ -3,3 +3,4 @@ import init
|
||||||
import captures
|
import captures
|
||||||
import find
|
import find
|
||||||
import split
|
import split
|
||||||
|
import match
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue