lmi-commits
[Top][All Lists]
Advanced

[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));



reply via email to

[Prev in Thread] Current Thread [Next in Thread]