Skip to content
Snippets Groups Projects
Commit b3cbdd4e authored by Taddeus Kroes's avatar Taddeus Kroes
Browse files

Cleared up some function names in unit tests.

parent 84ad376b
No related branches found
No related tags found
No related merge requests found
......@@ -150,7 +150,7 @@ class TestLine(unittest.TestCase):
self.assertFalse(is_int(neg_a))
self.assertFalse(is_int(plus))
def test_negated_addition_subtraction(self):
def test_negated_operator(self):
neg = -N('+', L(1), L(2))
self.assertEquals(generate_line(neg), '-(1 + 2)')
......@@ -172,5 +172,6 @@ class TestLine(unittest.TestCase):
plus = N('+', L(1), -L(4))
self.assertEquals(generate_line(plus), '1 - 4')
def test_double_negation(self):
neg = --L(1)
self.assertEquals(generate_line(neg), '--1')
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment