Beispiel #1
0
 def assertCompilesTo(self, source, expected_result):
     self.assertEqual(lython_compile(source), expected_result)
Beispiel #2
0
 def test_extra_opening(self):
     with self.assertRaises(ParsingError):
         lython_compile("(")
Beispiel #3
0
 def test_extra_closing(self):
     with self.assertRaises(ParsingError):
         lython_compile("(foo))")
Beispiel #4
0
 def assertCompilesTo(self, source, expected_result):
     self.assertEqual(lython_compile(source), expected_result)
Beispiel #5
0
 def test_extra_opening(self):
     with self.assertRaises(ParsingError):
         lython_compile("(")
Beispiel #6
0
 def test_extra_closing(self):
     with self.assertRaises(ParsingError):
         lython_compile("(foo))")