aboutsummaryrefslogtreecommitdiff
path: root/tests/extmod
diff options
context:
space:
mode:
authorDamien George2015-03-14 22:56:02 +0000
committerDamien George2015-03-14 22:56:02 +0000
commitf256cfef4f67c0a79141194b0a28dfa2a21b1110 (patch)
tree2bbf38e88a62351f4ec42c2e428ae63e78eedf4d /tests/extmod
parentfa1edff006ced6f2e4b4ba4f899809c0d2a63de0 (diff)
tests: Add some more tests for complex numbers and ure module.
Diffstat (limited to 'tests/extmod')
-rw-r--r--tests/extmod/ure1.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/extmod/ure1.py b/tests/extmod/ure1.py
index 1501a5264..39e84d51e 100644
--- a/tests/extmod/ure1.py
+++ b/tests/extmod/ure1.py
@@ -56,3 +56,9 @@ print(m.group(0))
m = re.search("w.r", "hello world")
print(m.group(0))
+
+m = re.match('a+?', 'ab'); print(m.group(0))
+m = re.match('a*?', 'ab'); print(m.group(0))
+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))