From be2e860c83eb6c0ee30f6f8cb8063373e2989067 Mon Sep 17 00:00:00 2001 From: Erez Sh Date: Mon, 24 Dec 2018 16:11:46 +0200 Subject: [PATCH] Added to tests: Make sure the standalone parser is reusable --- tests/test_tools.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/test_tools.py b/tests/test_tools.py index ff823ec..27927eb 100644 --- a/tests/test_tools.py +++ b/tests/test_tools.py @@ -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 = """