Skip to content

Commit

Permalink
add test for parent, fix #57
Browse files Browse the repository at this point in the history
  • Loading branch information
boolangery committed Oct 20, 2024
1 parent 36f02a0 commit 4cad915
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion luaparser/tests/test_integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -284,4 +284,9 @@ def test_cont_int_7(self):
]
)
)
self.assertEqual(exp, tree)
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)))

0 comments on commit 4cad915

Please sign in to comment.