From 4cad915bd950647911adbc89d2198511c59de217 Mon Sep 17 00:00:00 2001 From: boolangery Date: Sun, 20 Oct 2024 20:42:12 +0200 Subject: [PATCH] add test for parent, fix #57 --- luaparser/tests/test_integration.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/luaparser/tests/test_integration.py b/luaparser/tests/test_integration.py index 1b64c1c..062dcc1 100644 --- a/luaparser/tests/test_integration.py +++ b/luaparser/tests/test_integration.py @@ -284,4 +284,9 @@ def test_cont_int_7(self): ] ) ) - self.assertEqual(exp, tree) \ No newline at end of file + self.assertEqual(exp, tree) + + # Brackets are absent in output of AST->source_code conversion #57 + def test_cont_int_8(self): + source = r"result = (a + b) / (c + d)" + self.assertEqual(source, ast.to_lua_source(ast.parse(source))) \ No newline at end of file