diff options
-rw-r--r-- | test/match.nim | 6 | ||||
-rw-r--r-- | test/testall.nim | 1 |
2 files changed, 7 insertions, 0 deletions
diff --git a/test/match.nim b/test/match.nim new file mode 100644 index 000000000..b3cf1c5e5 --- /dev/null +++ b/test/match.nim @@ -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) diff --git a/test/testall.nim b/test/testall.nim index 935bfde29..6fa3e9bca 100644 --- a/test/testall.nim +++ b/test/testall.nim @@ -3,3 +3,4 @@ import init import captures import find import split +import match |