Skip to content
Snippets Groups Projects
Commit 1c9969fd authored by Sander Mathijs van Veen's avatar Sander Mathijs van Veen
Browse files

Removed explicit negation node from test cases.

parent fb5adcac
No related branches found
No related tags found
No related merge requests found
......@@ -28,12 +28,7 @@ class TestB1Ch10(unittest.TestCase):
)
),
('-x3*-2x5',
N('*',
N('*',
N('-', N('^', L('x'), L(3))),
N('-', L(2))),
N('^', L('x'), L(5))
)
-(L('x') ** L(3)) * - L(2) * L('x') ** L(5)
),
('(7x2y3)^2/(7x2y3)',
N('/',
......
......@@ -24,7 +24,7 @@ class TestCalc(unittest.TestCase):
def test_infinity(self):
expressions = [('2^3000', N('^', L(2), L(3000))),
('2^-3000', N('^', L(2), N('-', L(3000))))]
('2^-3000', N('^', L(2), -L(3000)))]
# ('2^99999999999', None),
# ('2^-99999999999', 0.0)]
......@@ -70,7 +70,7 @@ class TestCalc(unittest.TestCase):
expressions = [
('a^b^c', N('^', a, N('^', b, c))),
('-1^b^c', N('-', N('^', L(1), N('^', b, c)))),
('-1^b^c', -N('^', L(1), N('^', b, c))),
('ab^c', N('*', a, N('^', b, c))),
('a(b)^c', N('*', a, N('^', b, c))),
('a(b+c)^(d+e)', N('*', a, N('^', N('+', b, c),
......
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