[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] odd/width-of-inf 3eff232 5/6: Add failing test: scal
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] odd/width-of-inf 3eff232 5/6: Add failing test: scale by 10^2147483640 to print "inf" |
Date: |
Wed, 21 Mar 2018 19:20:23 -0400 (EDT) |
branch: odd/width-of-inf
commit 3eff232b75757a4d210db3ba4bfd1a563abd9c00
Author: Gregory W. Chicares <address@hidden>
Commit: Gregory W. Chicares <address@hidden>
Add failing test: scale by 10^2147483640 to print "inf"
---
miscellany_test.cpp | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/miscellany_test.cpp b/miscellany_test.cpp
index 1da6fbb..9bdbc0d 100644
--- a/miscellany_test.cpp
+++ b/miscellany_test.cpp
@@ -318,6 +318,11 @@ void test_scale_power()
);
}
+ if(D::has_infinity)
+ {
+ BOOST_TEST_EQUAL( 0, scale_power( 9, D::infinity(),
D::infinity()));
+ }
+
// Test positive and negative zeros.
BOOST_TEST_EQUAL( 0, scale_power( 9, 0.0,
0.0));
- [lmi-commits] [lmi] branch odd/width-of-inf created (now b7b4812), Greg Chicares, 2018/03/21
- [lmi-commits] [lmi] odd/width-of-inf b7b4812 6/6: Sketch and compare a different algorithm, Greg Chicares, 2018/03/21
- [lmi-commits] [lmi] odd/width-of-inf df8f6b0 3/6: Augment unit tests, Greg Chicares, 2018/03/21
- [lmi-commits] [lmi] odd/width-of-inf d3cb41e 2/6: Explicitly qualify std::strtof(), Greg Chicares, 2018/03/21
- [lmi-commits] [lmi] odd/width-of-inf 3eff232 5/6: Add failing test: scale by 10^2147483640 to print "inf",
Greg Chicares <=
- [lmi-commits] [lmi] odd/width-of-inf b487178 4/6: Augment unit tests, Greg Chicares, 2018/03/21
- [lmi-commits] [lmi] odd/width-of-inf 2589cea 1/6: Add digressionary-branch spells to the grimoire, Greg Chicares, 2018/03/21