lmi-commits
[Top][All Lists]
Advanced

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

[lmi-commits] [lmi] master 0e29fb4 10/13: Augment a block of unit tests


From: Greg Chicares
Subject: [lmi-commits] [lmi] master 0e29fb4 10/13: Augment a block of unit tests
Date: Sun, 4 Jul 2021 19:04:45 -0400 (EDT)

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

    Augment a block of unit tests
---
 zero_test.cpp | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/zero_test.cpp b/zero_test.cpp
index 4a46ba9..90796c6 100644
--- a/zero_test.cpp
+++ b/zero_test.cpp
@@ -498,18 +498,26 @@ void test_various_functions()
     test_a_decimal_function(f01, root_01, -1.0 , 4.0, 17     , __LINE__, 163);
     test_a_function        (f01, root_01, -1.0 , 4.0, 1.0e-15, __LINE__);
 
-    // For now, test_a_decimal_function() tests that the error is
+    // For now, test_a_[decimal_]function() tests that the error is
     // within tolerance, ignoring roundoff in the computed function.
     // That may very often be useful, but it can produce spurious
     // failures, as in these three commented-out lines:
 //  test_a_decimal_function(f01, 0.0, -1.0, 4.0, 20, __LINE__, 169);
+//  test_a_function        (f01, 0.0, -1.0, 4.0, 0.5 * 1.0e-20, __LINE__);
 //  test_a_decimal_function(f01, 0.0, -1.0, 4.0, 19, __LINE__, 171);
+//  test_a_function        (f01, 0.0, -1.0, 4.0, 0.5 * 1.0e-19, __LINE__);
 //  test_a_decimal_function(f01, 0.0, -1.0, 4.0, 18, __LINE__, 168);
+//  test_a_function        (f01, 0.0, -1.0, 4.0, 0.5 * 1.0e-18, __LINE__);
     test_a_decimal_function(f01, 0.0, -1.0, 4.0, 17, __LINE__, 163);
+    test_a_function        (f01, 0.0, -1.0, 4.0, 0.5 * 1.0e-17, __LINE__);
     test_a_decimal_function(f01, 0.0, -1.0, 4.0, 16, __LINE__, 156);
+    test_a_function        (f01, 0.0, -1.0, 4.0, 0.5 * 1.0e-16, __LINE__);
     test_a_decimal_function(f01, 0.0, -1.0, 4.0, 15, __LINE__, 142);
+    test_a_function        (f01, 0.0, -1.0, 4.0, 0.5 * 1.0e-15, __LINE__);
     test_a_decimal_function(f01, 0.0, -1.0, 4.0, 14, __LINE__, 128);
+    test_a_function        (f01, 0.0, -1.0, 4.0, 0.5 * 1.0e-14, __LINE__);
     test_a_decimal_function(f01, 0.0, -1.0, 4.0, 12, __LINE__, 112);
+    test_a_function        (f01, 0.0, -1.0, 4.0, 0.5 * 1.0e-12, __LINE__);
 
     auto f02 = [](double x) {return std::pow(x - 1.7, 17.0);};
     auto root_02 = 1.7;



reply via email to

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