Skip to content

Commit 5e80c53

Browse files
flowergrassdpgeorge
authored andcommitted
tests/extmod: Improve test coverage of ure module.
1 parent d7150b0 commit 5e80c53

File tree

3 files changed

+12
-0
lines changed

3 files changed

+12
-0
lines changed

tests/extmod/ure1.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@
1111
except IndexError:
1212
print("IndexError")
1313

14+
# conversion of re and match to string
15+
str(r)
16+
str(m)
17+
1418
r = re.compile("(.+)1")
1519
m = r.match("xyz781")
1620
print(m.group(0))

tests/extmod/ure_split_notimpl.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import ure as re
2+
3+
r = re.compile('( )')
4+
try:
5+
s = r.split("a b c foobar")
6+
except NotImplementedError:
7+
print('NotImplementedError')
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
NotImplementedError

0 commit comments

Comments
 (0)