tests/extmod: Improve test coverage of ure module.
This commit is contained in:
parent
d7150b09d7
commit
5e80c53c11
|
@ -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))
|
||||
|
|
|
@ -0,0 +1,7 @@
|
|||
import ure as re
|
||||
|
||||
r = re.compile('( )')
|
||||
try:
|
||||
s = r.split("a b c foobar")
|
||||
except NotImplementedError:
|
||||
print('NotImplementedError')
|
|
@ -0,0 +1 @@
|
|||
NotImplementedError
|
Loading…
Reference in New Issue