X-Git-Url: https://svn.cri.ensmp.fr/git/linpy.git/blobdiff_plain/56ab422e3bbc5a6a072f5b2a5be9d88d1017f03f..afb3c2bc9f798096c571ff02d2eb2327544d7160:/tests/test_linear.py diff --git a/tests/test_linear.py b/tests/test_linear.py index 1fe9ac8..2375092 100644 --- a/tests/test_linear.py +++ b/tests/test_linear.py @@ -131,9 +131,9 @@ class TestExpression(unittest.TestCase): def test_repr(self): self.assertEqual(repr(self.x), "Symbol('x')") self.assertEqual(repr(self.one), 'Constant(1)') + self.assertEqual(repr(self.pi), 'Constant(22, 7)') self.assertEqual(repr(self.expr), "Expression({'x': 1, 'y': -2}, 3)") - @unittest.expectedFailure def test_fromstring(self): self.assertEqual(Expression.fromstring('x'), self.x) self.assertEqual(Expression.fromstring('-x'), -self.x)