lmi-commits
[Top][All Lists]
Advanced

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

[lmi-commits] [lmi] odd/eraseme_error b862db3 08/10: Uniformly test two


From: Greg Chicares
Subject: [lmi-commits] [lmi] odd/eraseme_error b862db3 08/10: Uniformly test two functions in parallel
Date: Wed, 7 Jul 2021 06:22:14 -0400 (EDT)

branch: odd/eraseme_error
commit b862db366482663b9f7194444db883b194307cb4
Author: Gregory W. Chicares <gchicares@sbcglobal.net>
Commit: Gregory W. Chicares <gchicares@sbcglobal.net>

    Uniformly test two functions in parallel
    
    It is becoming tiresome to invoke both of
      test_a_decimal_function()
      test_a_function()
    but not yet tiresome enough to spend time refactoring.
---
 zero_test.cpp | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/zero_test.cpp b/zero_test.cpp
index 938a31c..bb0657d 100644
--- a/zero_test.cpp
+++ b/zero_test.cpp
@@ -675,7 +675,9 @@ void test_various_functions()
     // the first is, too.
     auto f06 = [](double x) {return x * x - 4.0;};
     auto root_06 = -2.0;
-    test_a_function        (f06, root_06 , 1.9, -2.1, 1.0e-15, __LINE__);
+    test_a_decimal_function(f06, root_06,  1.9, -2.1, 15     , __LINE__);
+    test_a_decimal_function(f06, root_06, -2.1 , 1.9, 15     , __LINE__);
+    test_a_function        (f06, root_06,  1.9, -2.1, 1.0e-15, __LINE__);
     test_a_function        (f06, root_06, -2.1 , 1.9, 1.0e-15, __LINE__);
 }
 



reply via email to

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