def test_comments(self): pol = """ # This is a full-line pound comment 12 # A partial-line comment with (+ 23 43) keywords (+ 3 # An expression with embedded comments 2) """ results = Parser.eval(self.e, pol) self.assertEqual(results, [ 12, 5 ])
def test_comments(self): pol = """ # This is a full-line pound comment 12 # A partial-line comment with (+ 23 43) keywords (+ 3 # An expression with embedded comments 2) """ results = Parser.eval(self.e, pol) self.assertEqual(results, [12, 5])
def verify(self, pol, expected): results = Parser.eval(self.e, pol) self.assertEqual(results, expected)
def setUp(self): self.e = Parser.Evaluator()