tests/extmod: Improve test coverage of ure module.

pull/2682/merge
Rami Ali 2017-01-17 17:26:59 +11:00 zatwierdzone przez Damien George
rodzic d7150b09d7
commit 5e80c53c11
3 zmienionych plików z 12 dodań i 0 usunięć

Wyświetl plik

@ -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))

Wyświetl plik

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

Wyświetl plik

@ -0,0 +1 @@
NotImplementedError