Skip to content

Commit

Permalink
run-tests: Add explicit test on search vs match distinction.
Browse files Browse the repository at this point in the history
  • Loading branch information
pfalcon committed Jul 23, 2015
1 parent ea705c4 commit 5b1cd0b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions run-tests
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ test_suite = [
("match", r"abc", "abcdef"),
("match", r"abc*", "abdef"),

# search vs match distinction
("match", r"a*", "baa"),
("search", r"a*", "baa"),

# nested group matching
("match", r"(([0-9]*)([a-z]*)[0-9]*)", "1234hello567"),
("match", r"([0-9]*)(([a-z]*)([0-9]*))", "1234hello567"),
Expand Down

0 comments on commit 5b1cd0b

Please sign in to comment.