mirror of
https://github.com/nim-lang/Nim.git
synced 2026-05-23 05:09:54 +00:00
Add additional tests for match
This commit is contained in:
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 find
|
||||
import split
|
||||
import match
|
||||
|
||||
Reference in New Issue
Block a user