From 4e86ca398f64ceb0351414fd91408fc8f9494907 Mon Sep 17 00:00:00 2001 From: Rami Ali Date: Tue, 14 Mar 2017 16:11:25 +1100 Subject: [PATCH] tests/extmod: Improve re1.5/recursiveloop.c test coverage. --- tests/extmod/ure1.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/extmod/ure1.py b/tests/extmod/ure1.py index b5edeeace3..a867f17515 100644 --- a/tests/extmod/ure1.py +++ b/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|c', 'c'); print(m.group(0)) +# Case where anchors fail to match +r = re.compile("^b|b$") +m = r.search("abc") +print(m) + try: re.compile("*") except: