lmi-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lmi-commits] [lmi] master 9e608afe 20/22: Remove debugging output for t


From: Greg Chicares
Subject: [lmi-commits] [lmi] master 9e608afe 20/22: Remove debugging output for tests that now succeed
Date: Fri, 20 May 2022 22:43:43 -0400 (EDT)

branch: master
commit 9e608afe7033b779d29fe6e05bf1ec4ba659cef9
Author: Gregory W. Chicares <gchicares@sbcglobal.net>
Commit: Gregory W. Chicares <gchicares@sbcglobal.net>

    Remove debugging output for tests that now succeed
---
 math_functions_test.cpp | 18 ------------------
 1 file changed, 18 deletions(-)

diff --git a/math_functions_test.cpp b/math_functions_test.cpp
index 2690607d..5ad57626 100644
--- a/math_functions_test.cpp
+++ b/math_functions_test.cpp
@@ -162,30 +162,12 @@ void test_expm1_log1p()
     double const y = lmi::log1p(0.01);
     double const z = lmi::expm1(lmi::log1p(0.04) / 12);
 
-#if 0
     // digits      1 23456789012345678901234
     LMI_TEST_EQUAL(1.74560101501691655734305, x);
     // digits          123456789012345678901
     LMI_TEST_EQUAL(0.00995033085316808334209, y);
     // digits          123456789012345678901
     LMI_TEST_EQUAL(0.00327373978219886374239, z);
-#else // not 0
-    std::cout << "Those tests failed, so compare..." << std::endl;
-
-    double const a = std::expm1(1.01);
-    double const b = std::log1p(0.01);
-    double const c = std::expm1(std::log1p(0.04) / 12);
-
-    std::cout
-        << "  " << x << " lmi::expm1(1.01)\n"
-        << "  " << a << " std::expm1(1.01)\n"
-        << "  " << y << " lmi::log1p(0.01)\n"
-        << "  " << b << " std::log1p(0.01)\n"
-        << "  " << z << " lmi::expm1(lmi::log1p(0.04) / 12)\n"
-        << "  " << c << " std::expm1(std::log1p(0.04) / 12)\n"
-        << std::endl
-        ;
-#endif // not 0
 }
 
 /// This function isn't a unit test per se. Its purpose is to show



reply via email to

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