[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);
- [lmi-commits] [lmi] master updated (ef6c706 -> 016bf00), Greg Chicares, 2021/06/28
- [lmi-commits] [lmi] master cb924a4 1/8: Translate from Brent's ALGOL more directly, Greg Chicares, 2021/06/28
- [lmi-commits] [lmi] master dcfcc94 3/8: Rename and document a unit-test function template, Greg Chicares, 2021/06/28
- [lmi-commits] [lmi] master e995bb8 7/8: Document an important qualification for Brent's error term, Greg Chicares, 2021/06/28
- [lmi-commits] [lmi] master ed9d62d 2/8: Explain some commented-out unit tests,
Greg Chicares <=
- [lmi-commits] [lmi] master 94d6b7b 4/8: Restructure a unit test, Greg Chicares, 2021/06/28
- [lmi-commits] [lmi] master 5848d68 6/8: Improve an error term, and rewrite a misleading comment, Greg Chicares, 2021/06/28
- [lmi-commits] [lmi] master 623ddbd 5/8: Assert a precondition, Greg Chicares, 2021/06/28
- [lmi-commits] [lmi] master 016bf00 8/8: Add a function template to facilitate testing, Greg Chicares, 2021/06/28