diff options
| author | Damien George <damien.p.george@gmail.com> | 2015-03-14 22:56:02 +0000 |
|---|---|---|
| committer | Damien George <damien.p.george@gmail.com> | 2015-03-14 22:56:02 +0000 |
| commit | f256cfef4f67c0a79141194b0a28dfa2a21b1110 (patch) | |
| tree | 2bbf38e88a62351f4ec42c2e428ae63e78eedf4d /tests/extmod/ure1.py | |
| parent | fa1edff006ced6f2e4b4ba4f899809c0d2a63de0 (diff) | |
tests: Add some more tests for complex numbers and ure module.
Diffstat (limited to 'tests/extmod/ure1.py')
| -rw-r--r-- | tests/extmod/ure1.py | 6 |
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)) |
