From 9a4172e83557d605fbcb6b6b8fb41f8debab2e13 Mon Sep 17 00:00:00 2001 From: Vivien Maisonneuve Date: Wed, 20 Aug 2014 11:33:19 +0200 Subject: [PATCH] Fix unitary tests --- linpy/tests/test_linexprs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/linpy/tests/test_linexprs.py b/linpy/tests/test_linexprs.py index 1b01186..f189260 100644 --- a/linpy/tests/test_linexprs.py +++ b/linpy/tests/test_linexprs.py @@ -161,7 +161,7 @@ class TestLinExpr(unittest.TestCase): self.assertEqual(self.x.subs(self.y, 3), self.x) self.assertEqual(self.pi.subs(self.x, 3), self.pi) self.assertEqual(self.expr.subs(self.x, -3), -2 * self.y) - self.assertEqual(self.expr.subs([(self.x, self.y), (self.y, self.x)]), 3 - self.x) + self.assertEqual(self.expr.subs([(self.x, self.y), (self.y, self.x)]), -2*self.x + self.y + 3) self.assertEqual(self.expr.subs({self.x: self.z, self.y: self.z}), 3 - self.z) self.assertEqual(self.expr.subs({self.x: self.z, self.y: self.z}), 3 - self.z) with self.assertRaises(TypeError): -- 2.20.1