diff options
author | Flaviu Tamas <tamasflaviu@gmail.com> | 2015-01-16 19:12:05 -0500 |
---|---|---|
committer | Flaviu Tamas <tamasflaviu@gmail.com> | 2015-01-16 19:12:05 -0500 |
commit | d4450aa1ee7eac491025073c010679ab31236f40 (patch) | |
tree | 7a8c90db5a43da51e5e1e7eddf8ac60abd91c2d9 /test | |
parent | 1a5401ebcffdfa2e90888c1ce4e9126d993c67e8 (diff) | |
download | Nim-d4450aa1ee7eac491025073c010679ab31236f40.tar.gz |
Add additional tests for match
Diffstat (limited to 'test')
-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 |