Browse Source

tests/extmod: Improve re1.5/recursiveloop.c test coverage.

pull/2954/merge
Rami Ali 8 years ago
committed by Damien George
parent
commit
4e86ca398f
  1. 5
      tests/extmod/ure1.py

5
tests/extmod/ure1.py

@ -72,6 +72,11 @@ m = re.match('^ab$', 'ab'); print(m.group(0))
m = re.match('a|b', 'b'); print(m.group(0)) m = re.match('a|b', 'b'); print(m.group(0))
m = re.match('a|b|c', 'c'); print(m.group(0)) m = re.match('a|b|c', 'c'); print(m.group(0))
# Case where anchors fail to match
r = re.compile("^b|b$")
m = r.search("abc")
print(m)
try: try:
re.compile("*") re.compile("*")
except: except:

Loading…
Cancel
Save