projects
/
linpy.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add small isl changes
[linpy.git]
/
tests
/
test_linear.py
diff --git
a/tests/test_linear.py
b/tests/test_linear.py
index
3912fd3
..
4636275
100644
(file)
--- a/
tests/test_linear.py
+++ b/
tests/test_linear.py
@@
-110,6
+110,7
@@
class TestExpression(unittest.TestCase):
self.assertEqual(self.e / 2, self.x / 2 - self.y + Fraction(3, 2))
def test_str(self):
self.assertEqual(self.e / 2, self.x / 2 - self.y + Fraction(3, 2))
def test_str(self):
+ self.assertEqual(str(Expression()), '0')
self.assertEqual(str(self.x), 'x')
self.assertEqual(str(-self.x), '-x')
self.assertEqual(str(self.pi), '22/7')
self.assertEqual(str(self.x), 'x')
self.assertEqual(str(-self.x), '-x')
self.assertEqual(str(self.pi), '22/7')