projects
/
linpy.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Oops, fix relative imports
[linpy.git]
/
tests
/
test_linear.py
diff --git
a/tests/test_linear.py
b/tests/test_linear.py
index
b722726
..
2375092
100644
(file)
--- a/
tests/test_linear.py
+++ b/
tests/test_linear.py
@@
-131,6
+131,7
@@
class TestExpression(unittest.TestCase):
def test_repr(self):
self.assertEqual(repr(self.x), "Symbol('x')")
self.assertEqual(repr(self.one), 'Constant(1)')
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)")
def test_fromstring(self):
self.assertEqual(repr(self.expr), "Expression({'x': 1, 'y': -2}, 3)")
def test_fromstring(self):