tests/extmod: Add test for ure debug printing when compiling a regex.
This commit is contained in:
parent
e9cb1f8077
commit
221f88d1f3
3
tests/extmod/ure_debug.py
Normal file
3
tests/extmod/ure_debug.py
Normal file
@ -0,0 +1,3 @@
|
||||
# test printing debugging info when compiling
|
||||
import ure
|
||||
ure.compile('^a|b[0-9]\w$', ure.DEBUG)
|
15
tests/extmod/ure_debug.py.exp
Normal file
15
tests/extmod/ure_debug.py.exp
Normal file
@ -0,0 +1,15 @@
|
||||
0: rsplit 5 (3)
|
||||
2: any
|
||||
3: jmp 0 (-5)
|
||||
5: save 0
|
||||
7: split 14 (5)
|
||||
9: assert bol
|
||||
10: char a
|
||||
12: jmp 23 (9)
|
||||
14: char b
|
||||
16: class 1 0x30-0x39
|
||||
20: namedclass w
|
||||
22: assert eol
|
||||
23: save 1
|
||||
25: match
|
||||
Bytes: 26, insts: 14
|
Loading…
x
Reference in New Issue
Block a user