lmi-commits
[Top][All Lists]
Advanced

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

[lmi-commits] [lmi] master 53c3513 21/22: Reorder unit tests


From: Greg Chicares
Subject: [lmi-commits] [lmi] master 53c3513 21/22: Reorder unit tests
Date: Sun, 6 Jun 2021 21:38:03 -0400 (EDT)

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

    Reorder unit tests
---
 zero_test.cpp | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/zero_test.cpp b/zero_test.cpp
index 050233c..856bcf4 100644
--- a/zero_test.cpp
+++ b/zero_test.cpp
@@ -240,13 +240,14 @@ int test_main(int, char*[])
     // chasing after wind that costs many iterations.
 
     e_nineteenth e_19;
-    r = decimal_root(-1.0, 4.0, bias_none, 20, e_19);
-    LMI_TEST(root_is_valid == r.validity);
-    LMI_TEST(std::fabs(r.root) <= epsilon);
 
     double d = brent_zero(-1.0, 4.0, 1.0e-20, e_19);
     LMI_TEST(std::fabs(d) <= epsilon);
 
+    r = decimal_root(-1.0, 4.0, bias_none, 20, e_19);
+    LMI_TEST(root_is_valid == r.validity);
+    LMI_TEST(std::fabs(r.root) <= epsilon);
+
     d = brent_zero(-100.0, 100.0, 0.5, eq_2_1);
     double zeta = -100.0;
     double eq_2_1_upper = zeta + max_err(zeta, 0.5);



reply via email to

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