mirror of https://github.com/lark-parser/lark.git
Fix UTF-8 test
This commit is contained in:
parent
9110e1e400
commit
ed04b22c4c
|
@ -55,17 +55,17 @@ class TestParsers(unittest.TestCase):
|
|||
self.assertRaises(ParseError, l.parse, 'a')
|
||||
|
||||
def test_utf8(self):
|
||||
g = """start: a
|
||||
g = u"""start: a
|
||||
a: "±a"
|
||||
"""
|
||||
l = Lark(g)
|
||||
l.parse('±a')
|
||||
l.parse(u'±a')
|
||||
|
||||
l = Lark(g, parser='earley', lexer=None)
|
||||
l.parse('±a')
|
||||
l.parse(u'±a')
|
||||
|
||||
l = Lark(g, parser='earley', lexer='dynamic')
|
||||
l.parse('±a')
|
||||
l.parse(u'±a')
|
||||
|
||||
|
||||
def _make_full_earley_test(LEXER):
|
||||
|
|
Loading…
Reference in New Issue