From d4450aa1ee7eac491025073c010679ab31236f40 Mon Sep 17 00:00:00 2001 From: Flaviu Tamas Date: Fri, 16 Jan 2015 19:12:05 -0500 Subject: [PATCH] Add additional tests for match --- test/match.nim | 6 ++++++ test/testall.nim | 1 + 2 files changed, 7 insertions(+) create mode 100644 test/match.nim diff --git a/test/match.nim b/test/match.nim new file mode 100644 index 0000000000..b3cf1c5e50 --- /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 935bfde297..6fa3e9bca3 100644 --- a/test/testall.nim +++ b/test/testall.nim @@ -3,3 +3,4 @@ import init import captures import find import split +import match