Commit 08376d73 authored by Eckhart Arnold's avatar Eckhart Arnold
Browse files

- bug fix: unit test for RE correctec

parent 6adf7a91
......@@ -133,7 +133,8 @@ class TestEBNFParser:
def test_RE(self):
gr = get_ebnf_grammar()
m = gr.regexp.main.regexp.match(r'/[\\\\]/ xxx /')
print(gr.regexp.parsers)
m = gr.regexp.parsers[0].regexp.match(r'/[\\\\]/ xxx /')
rs = m.group()
assert rs.find('x') < 0, rs.group()
rx = re.compile(rs[1:-1])
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment