Skip to content

Commit 4e86ca3

Browse files
flowergrassdpgeorge
authored andcommitted
tests/extmod: Improve re1.5/recursiveloop.c test coverage.
1 parent 773b0ba commit 4e86ca3

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

tests/extmod/ure1.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,11 @@
7272
m = re.match('a|b', 'b'); print(m.group(0))
7373
m = re.match('a|b|c', 'c'); print(m.group(0))
7474

75+
# Case where anchors fail to match
76+
r = re.compile("^b|b$")
77+
m = r.search("abc")
78+
print(m)
79+
7580
try:
7681
re.compile("*")
7782
except:

0 commit comments

Comments
 (0)