projects
/
linpy.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2ffea1a
)
Fix tests for Expression.subs
author
Vivien Maisonneuve
<v.maisonneuve@gmail.com>
Wed, 2 Jul 2014 07:08:56 +0000
(09:08 +0200)
committer
Vivien Maisonneuve
<v.maisonneuve@gmail.com>
Wed, 2 Jul 2014 07:08:56 +0000
(09:08 +0200)
pypol/tests/test_linexprs.py
patch
|
blob
|
history
diff --git
a/pypol/tests/test_linexprs.py
b/pypol/tests/test_linexprs.py
index 5862351bf158fb25fabb693dfa8b4b404249b673..a3e81b042c082d3e0d4d785320742cca6b89a504 100644
(file)
--- a/
pypol/tests/test_linexprs.py
+++ b/
pypol/tests/test_linexprs.py
@@
-155,7
+155,7
@@
class TestExpression(unittest.TestCase):
self.assertEqual(self.expr.subs('x', -3), -2 * self.y)
self.assertEqual(self.expr.subs([('x', self.y), ('y', self.x)]), 3 - self.x)
self.assertEqual(self.expr.subs({'x': self.y, 'y': self.x}), 3 - self.x)
- self.assertEqual(self.expr.subs({self.x: self.
y, self.y: self.x}), 3 - self.x
)
+ self.assertEqual(self.expr.subs({self.x: self.
z, self.y: self.z}), -self.z + 3
)
def test_fromstring(self):
self.assertEqual(Expression.fromstring('x'), self.x)