diff options
author | Flaviu Tamas <tamasflaviu@gmail.com> | 2015-01-18 12:49:22 -0500 |
---|---|---|
committer | Flaviu Tamas <tamasflaviu@gmail.com> | 2015-01-18 12:49:22 -0500 |
commit | ca299504d1dc3a23968c4ddf33fd64aa3f1a9422 (patch) | |
tree | 4ea7a68de5c8a55e5f7253ad3e4312981bdac061 /test/find.nim | |
parent | a80617fd4c01839824b22d1879c69c092886d835 (diff) | |
download | Nim-ca299504d1dc3a23968c4ddf33fd64aa3f1a9422.tar.gz |
Make study a negatable option instead
Diffstat (limited to 'test/find.nim')
-rw-r--r-- | test/find.nim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/find.nim b/test/find.nim index 1fd91f0d2..06f4d22cc 100644 --- a/test/find.nim +++ b/test/find.nim @@ -4,12 +4,12 @@ include nre suite "find": test "find text": check("3213a".find(initRegex(r"[a-z]")).match == "a") - check("1 2 3 4 5 6 7 8 ".findAll(initRegex(r" ", "S")).map( + check("1 2 3 4 5 6 7 8 ".findAll(re" ").map( proc (a: RegexMatch): string = a.match ) == @[" ", " ", " ", " ", " ", " ", " ", " "]) test "find bounds": - check("1 2 3 4 5 ".findAll(initRegex(r" ", "S")).map( + check("1 2 3 4 5 ".findAll(re" ")).map( proc (a: RegexMatch): Slice[int] = a.matchBounds ) == @[1..2, 3..4, 5..6, 7..8, 9..10]) |