summaryrefslogtreecommitdiff
path: root/tests/test_c_generator.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_c_generator.py')
-rw-r--r--tests/test_c_generator.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/test_c_generator.py b/tests/test_c_generator.py
index a21a0b1..7210294 100644
--- a/tests/test_c_generator.py
+++ b/tests/test_c_generator.py
@@ -21,6 +21,7 @@ def compare_asts(ast1, ast2):
return False
ast1 = ast1[1]
ast2 = ast2[1]
+ return compare_asts(ast1, ast2)
for attr in ast1.attr_names:
if getattr(ast1, attr) != getattr(ast2, attr):
return False
@@ -208,5 +209,12 @@ class TestCtoC(unittest.TestCase):
}
''')
+ def test_comma_op_assignment(self):
+ self._assert_ctoc_correct(r'''
+ void f() {
+ i = (a, b, c);
+ }
+ ''')
+
if __name__ == "__main__":
unittest.main()