tests/extmod: Add test for ure debug printing when compiling a regex.

This commit is contained in:
Damien George 2017-01-26 23:45:51 +11:00
parent e9cb1f8077
commit 221f88d1f3
2 changed files with 18 additions and 0 deletions

View File

@ -0,0 +1,3 @@
# test printing debugging info when compiling
import ure
ure.compile('^a|b[0-9]\w$', ure.DEBUG)

View 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