lmi-commits
[Top][All Lists]
Advanced

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

[lmi-commits] [lmi] master ed9d62d 2/8: Explain some commented-out unit


From: Greg Chicares
Subject: [lmi-commits] [lmi] master ed9d62d 2/8: Explain some commented-out unit tests
Date: Mon, 28 Jun 2021 10:29:51 -0400 (EDT)

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

    Explain some commented-out unit tests
---
 zero_test.cpp | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/zero_test.cpp b/zero_test.cpp
index 176806d..131eb80 100644
--- a/zero_test.cpp
+++ b/zero_test.cpp
@@ -216,6 +216,12 @@ int test_main(int, char*[])
     // Because the base of natural logarithms is transcendental,
     // Brent's algorithm must terminate with distinct upper and lower
     // bounds: neither can equal the unrepresentable true value.
+    //
+    // The last iterate evaluated is retained in member 'e.state'.
+    // It is one endpoint of the final bounding interval, but not
+    // necessarily the endpoint that is returned according to the
+    // "bias" argument; the commented-out 'e.state' tests below serve
+    // to suggest this.
 
     r = decimal_root(0.5, 5.0, bias_lower, 9, e);
     LMI_TEST(root_is_valid == r.validity);



reply via email to

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