You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
595 B
17 lines
595 B
http://code.google.com/p/mpmath/issues/detail?id=203
|
|
http://code.google.com/p/mpmath/source/detail?r=1238
|
|
|
|
--- mpmath/tests/test_basic_ops.py
|
|
+++ mpmath/tests/test_basic_ops.py
|
|
@@ -148,8 +148,8 @@
|
|
assert hash(mp.mpq(5,1)) == hash(5)
|
|
assert hash(mp.mpq(1,2)) == hash(0.5)
|
|
if sys.version >= "3.2":
|
|
- assert hash(mpf(1))*2**2000 == hash(2**2000)
|
|
- assert hash(mpf(1))/2**2000 == hash(mpq(1,2**2000))
|
|
+ assert hash(mpf(1)*2**2000) == hash(2**2000)
|
|
+ assert hash(mpf(1)/2**2000) == hash(mpq(1,2**2000))
|
|
|
|
# Advanced rounding test
|
|
def test_add_rounding():
|