mirror of https://github.com/lark-parser/lark.git
Add test for nearley include of unicode
This commit is contained in:
parent
b491138d9a
commit
e05c62ca06
|
@ -0,0 +1,3 @@
|
|||
@include "unicode.ne"
|
||||
|
||||
main -> x
|
|
@ -1 +1 @@
|
|||
main -> "±a"
|
||||
x -> "±a"
|
||||
|
|
|
@ -73,6 +73,10 @@ class TestNearley(unittest.TestCase):
|
|||
|
||||
def test_utf8_2(self):
|
||||
fn = os.path.join(TEST_PATH, 'grammars/unicode.ne')
|
||||
nearley_tool_main(fn, 'x', NEARLEY_PATH)
|
||||
|
||||
def test_include_utf8(self):
|
||||
fn = os.path.join(TEST_PATH, 'grammars/include_unicode.ne')
|
||||
nearley_tool_main(fn, 'main', NEARLEY_PATH)
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue