Commit a7888fc7 authored by Taddeus Kroes's avatar Taddeus Kroes

Fixed duplicated fucntion definition in unit tests.

parent 83656548
...@@ -58,10 +58,8 @@ class TestRulesNumerics(RulesTestCase): ...@@ -58,10 +58,8 @@ class TestRulesNumerics(RulesTestCase):
self.assertEqual(divide_numerics(i3 / f2, (3, 2.0)), 1.5) self.assertEqual(divide_numerics(i3 / f2, (3, 2.0)), 1.5)
self.assertEqual(divide_numerics(f3 / f2, (3.0, 2.0)), 1.5) self.assertEqual(divide_numerics(f3 / f2, (3.0, 2.0)), 1.5)
def test_add_numerics(self):
l0, l1 = tree('1,2')
self.assertEqual(add_numerics(l0 + l1, (l0, l1, 1, 2)), 3)
def test_add_numerics(self): def test_add_numerics(self):
l0, a, l1 = tree('1,a,2') l0, a, l1 = tree('1,a,2')
self.assertEqual(add_numerics(l0 + l1, (l0, l1, 1, 2)), 3)
self.assertEqual(add_numerics(l0 + a + l1, (l0, l1, 1, 2)), L(3) + a) self.assertEqual(add_numerics(l0 + a + l1, (l0, l1, 1, 2)), L(3) + a)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment