lmi-commits
[Top][All Lists]
Advanced

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

[lmi-commits] [lmi] master a277ed6 11/11: Uniformly test two functions i


From: Greg Chicares
Subject: [lmi-commits] [lmi] master a277ed6 11/11: Uniformly test two functions in parallel
Date: Thu, 15 Jul 2021 14:57:12 -0400 (EDT)

branch: master
commit a277ed68fabb7fbd1bb6169cb209df79746d30a9
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 | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/zero_test.cpp b/zero_test.cpp
index 0166a59..bfcdf60 100644
--- a/zero_test.cpp
+++ b/zero_test.cpp
@@ -713,6 +713,8 @@ void test_various_functions()
     // the first is, too.
     auto f06 = [](double x) {return x * x - 4.0;};
     auto root_06 = -2.0;
+    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]