mod fraction simplify test

This commit is contained in:
Lafrite 2015-01-09 13:15:57 +01:00
parent 61bc284805
commit f00d8c9e57

View File

@ -32,6 +32,7 @@ class TestExpression(unittest.TestCase):
exp = Expression("1/2 - 4")
steps = ['\\frac{ 1 }{ 2 } - 4', \
'\\frac{ 1 \\times 1 }{ 2 \\times 1 } - \\frac{ 4 \\times 2 }{ 1 \\times 2 }',\
'\\frac{ 1 }{ 2 } - \\frac{ 8 }{ 2 }',\
'\\frac{ 1 - 8 }{ 2 }',\
'\\frac{ -7 }{ 2 }']
self.assertEqual(steps, list(exp.simplify()))