summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorTorbjorn Granlund <tege@gmplib.org>2012-11-26 18:59:00 +0100
committerTorbjorn Granlund <tege@gmplib.org>2012-11-26 18:59:00 +0100
commit4bb2da9019005b066ac9224643a2bf35a2b92f48 (patch)
treebd8a79bdd2fca780c0ad946aaaf2e0cb46c62b0f /tests
parentf15c32d8302975e3b53f62b16944190e730a92c6 (diff)
downloadgmp-4bb2da9019005b066ac9224643a2bf35a2b92f48.tar.gz
(checkz): Reduce huge numbers to avoid vax overflow.
Diffstat (limited to 'tests')
-rw-r--r--tests/cxx/t-ops2.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/cxx/t-ops2.cc b/tests/cxx/t-ops2.cc
index 05790bc07..fceb4470c 100644
--- a/tests/cxx/t-ops2.cc
+++ b/tests/cxx/t-ops2.cc
@@ -103,10 +103,10 @@ void checkz (){
CHECK_ALL_SIGNS(mpz_class,17,2,%);
CHECK(unsigned long,mpz_class,5,-2,/);
CHECK(unsigned long,mpz_class,5,-2,%);
- ASSERT_ALWAYS(7ul/mpz_class(1e100)==0);
- ASSERT_ALWAYS(7ul%mpz_class(1e100)==7);
- ASSERT_ALWAYS(7ul/mpz_class(-1e100)==0);
- ASSERT_ALWAYS(7ul%mpz_class(-1e100)==7);
+ ASSERT_ALWAYS(7ul/mpz_class(1e35)==0);
+ ASSERT_ALWAYS(7ul%mpz_class(1e35)==7);
+ ASSERT_ALWAYS(7ul/mpz_class(-1e35)==0);
+ ASSERT_ALWAYS(7ul%mpz_class(-1e35)==7);
CHECK_ALL_SIGNS_COMPARISONS(mpz_class,11,3);
CHECK_ALL(mpz_class,6,3,&);
CHECK_ALL(mpz_class,6,3,|);