summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorRami Ali <flowergrass@users.noreply.github.com>2017-03-14 16:11:25 +1100
committerDamien George <damien.p.george@gmail.com>2017-03-14 17:17:45 +1100
commit4e86ca398f64ceb0351414fd91408fc8f9494907 (patch)
tree4530acf14334141b3cfcc3b5da25d545abb7cff7
parent773b0bac416907d21f0aa0a0322f355e5588c8ad (diff)
downloadmicropython-4e86ca398f64ceb0351414fd91408fc8f9494907.tar.gz
micropython-4e86ca398f64ceb0351414fd91408fc8f9494907.zip
tests/extmod: Improve re1.5/recursiveloop.c test coverage.
-rw-r--r--tests/extmod/ure1.py5
1 files changed, 5 insertions, 0 deletions
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: