[Python-checkins] r87634 - python/branches/py3k-cdecimal/Lib/test/mpdecimal/tests/testdata_dist/cov.decTest
stefan.krah
python-checkins at python.org
Sun Jan 2 17:57:18 CET 2011
Author: stefan.krah
Date: Sun Jan 2 17:57:18 2011
New Revision: 87634
Log:
Add coverage test to trigger allocation failure in _mpd_check_exp().
Modified:
python/branches/py3k-cdecimal/Lib/test/mpdecimal/tests/testdata_dist/cov.decTest
Modified: python/branches/py3k-cdecimal/Lib/test/mpdecimal/tests/testdata_dist/cov.decTest
==============================================================================
--- python/branches/py3k-cdecimal/Lib/test/mpdecimal/tests/testdata_dist/cov.decTest (original)
+++ python/branches/py3k-cdecimal/Lib/test/mpdecimal/tests/testdata_dist/cov.decTest Sun Jan 2 17:57:18 2011
@@ -308,3 +308,13 @@
trunc10049 trunc 100.0 -> 100
trunc10050 trunc -100.0 -> -100
+
+-- negative etop: trigger allocation failure in mpd_qshiftl.
+maxexponent: 50
+minexponent: -50
+precision: 100
+clamp: 1
+etop10051 apply 1e+50 -> 100000000000000000000000000000000000000000000000000.0000000000000000000000000000000000000000000000000 Clamped
+
+
+
More information about the Python-checkins
mailing list