Skip to content

Commit

Permalink
check_process_line() : try exec() converted string
Browse files Browse the repository at this point in the history
  • Loading branch information
kangwonlee committed Dec 26, 2017
1 parent 4ddfd34 commit 3c21111
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test_symbol_converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,11 @@ def check_process_line(self, source_line, expected):
result = self.cp.process_line(source_line)
self.assertEqual(expected, result)

# test run the converted statement
result_sy = exec('''import sympy as sy
%s''' % result)
self.assertIsNone(result_sy)


class TestSymbolConverter(MyLineConverterTesterBase):
def test_wrap_symbol_name(self):
Expand Down

0 comments on commit 3c21111

Please sign in to comment.