Browse Source

Added to tests: Make sure the standalone parser is reusable

tags/gm/2021-09-23T00Z/github.com--lark-parser-lark/0.8.7
Erez Sh 6 years ago
committed by Erez Shinan
parent
commit
3fbac825a8
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      tests/test_tools.py

+ 2
- 0
tests/test_tools.py View File

@@ -49,6 +49,8 @@ class TestStandalone(TestCase):
l = _Lark()
x = l.parse('12 elephants')
self.assertEqual(x.children, ['12', 'elephants'])
x = l.parse('16 candles')
self.assertEqual(x.children, ['16', 'candles'])

def test_contextual(self):
grammar = """


Loading…
Cancel
Save