tests/extmod: Improve test coverage of ure module.

This commit is contained in:
Rami Ali 2017-01-17 17:26:59 +11:00 committed by Damien George
parent d7150b09d7
commit 5e80c53c11
3 changed files with 12 additions and 0 deletions

View File

@ -11,6 +11,10 @@ try:
except IndexError:
print("IndexError")
# conversion of re and match to string
str(r)
str(m)
r = re.compile("(.+)1")
m = r.match("xyz781")
print(m.group(0))

View File

@ -0,0 +1,7 @@
import ure as re
r = re.compile('( )')
try:
s = r.split("a b c foobar")
except NotImplementedError:
print('NotImplementedError')

View File

@ -0,0 +1 @@
NotImplementedError