[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
- [lmi-commits] [lmi] master dd3abb11 18/22: Demonstrate a defect, (continued)
- [lmi-commits] [lmi] master dd3abb11 18/22: Demonstrate a defect, Greg Chicares, 2022/05/20
- [lmi-commits] [lmi] master af8d3ac0 21/22: Rationalize indentation of preprocessor directives, Greg Chicares, 2022/05/20
- [lmi-commits] [lmi] master 324e171e 02/22: Rectify whitespace, Greg Chicares, 2022/05/20
- [lmi-commits] [lmi] master 15b1aa35 11/22: Add license and copyright boilerplate, Greg Chicares, 2022/05/20
- [lmi-commits] [lmi] master 4ec9da1f 12/22: Rename fdlibm sources, Greg Chicares, 2022/05/20
- [lmi-commits] [lmi] master e8a859a3 06/22: Rename prototyping macro, Greg Chicares, 2022/05/20
- [lmi-commits] [lmi] master 078e9a1c 16/22: Ignore certain diagnostics, Greg Chicares, 2022/05/20
- [lmi-commits] [lmi] master 2d514bdc 09/22: Allow some common macros, Greg Chicares, 2022/05/20
- [lmi-commits] [lmi] master 1646f4c0 13/22: Rename fdlibm entry points, Greg Chicares, 2022/05/20
- [lmi-commits] [lmi] master 75dc2686 17/22: Write unambiguous braces, Greg Chicares, 2022/05/20
- [lmi-commits] [lmi] master 9e608afe 20/22: Remove debugging output for tests that now succeed,
Greg Chicares <=
- [lmi-commits] [lmi] master 2563b0f6 07/22: Expunge prototypes for unreferenced functions, Greg Chicares, 2022/05/20
- [lmi-commits] [lmi] master c6902b0d 19/22: Fix the defect just noted, Greg Chicares, 2022/05/20
- [lmi-commits] [lmi] master 6c12b4ea 22/22: Specify widths of some integers, Greg Chicares, 2022/05/20