Skip to content

Commit

Permalink
make tests green
Browse files Browse the repository at this point in the history
  • Loading branch information
nitely committed Jun 17, 2019
1 parent 2d6d349 commit 62ba34f
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tests/tests.nim
Original file line number Diff line number Diff line change
Expand Up @@ -768,7 +768,7 @@ test "tflags":
\d + # the integral part
\. # the decimal point
\d * # some fractional digits"""))
check(re"""(?x) # verbose mode
doAssert(re"""(?x) # verbose mode
^ # beginning of string
M{0,4} # thousands - 0 to 4 M's
(CM|CD|D?C{0,3}) # hundreds - 900 (CM), 400 (CD), 0-300 (0 to 3 C's),
Expand Down Expand Up @@ -862,11 +862,11 @@ test "tfind":
check m.boundaries == 6 .. 9

test "tcontains":
check(re"bc" in "abcd")
check(re"bd" notin "abcd")
check(re"(23)+" in "2323")
check(re"(23)+" in "23232")
check(re"^(23)+$" notin "23232")
doAssert(re"bc" in "abcd")
doAssert(re"bd" notin "abcd")
doAssert(re"(23)+" in "2323")
doAssert(re"(23)+" in "23232")
doAssert(re"^(23)+$" notin "23232")

test "tsplit":
check(split("a,b,c", re",") == @["a", "b", "c"])
Expand Down

0 comments on commit 62ba34f

Please sign in to comment.