diff options
author | Rami Ali <flowergrass@users.noreply.github.com> | 2017-03-14 16:11:25 +1100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2017-03-14 17:17:45 +1100 |
commit | 4e86ca398f64ceb0351414fd91408fc8f9494907 (patch) | |
tree | 4530acf14334141b3cfcc3b5da25d545abb7cff7 | |
parent | 773b0bac416907d21f0aa0a0322f355e5588c8ad (diff) | |
download | micropython-4e86ca398f64ceb0351414fd91408fc8f9494907.tar.gz micropython-4e86ca398f64ceb0351414fd91408fc8f9494907.zip |
tests/extmod: Improve re1.5/recursiveloop.c test coverage.
-rw-r--r-- | tests/extmod/ure1.py | 5 |
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: |