Browse Source

Fix UTF-8 test

tags/gm/2021-09-23T00Z/github.com--lark-parser-lark/0.5.1
Kaspar Emanuel 7 years ago
parent
commit
ed04b22c4c
1 changed files with 4 additions and 4 deletions
  1. +4
    -4
      tests/test_parser.py

+ 4
- 4
tests/test_parser.py View File

@@ -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…
Cancel
Save