From 4354e72e52ab68fc43ecda4c07b4a2e3b44bbab9 Mon Sep 17 00:00:00 2001 From: Don Cross Date: Wed, 13 May 2020 15:52:22 -0400 Subject: [PATCH] Minor tweaks due to sun, moon radius changes for lunar eclipse calculations. Adding support for lunar eclipse calculations in the C code caused me to tweak the values of the Sun and Moon radii. This in turn caused unit test failures. Made slight changes to the unit tests to get things passing again. --- demo/c/test/riseset_correct.txt | 2 +- generate/ctest.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/demo/c/test/riseset_correct.txt b/demo/c/test/riseset_correct.txt index 6ad158c3..d0fa1e6c 100644 --- a/demo/c/test/riseset_correct.txt +++ b/demo/c/test/riseset_correct.txt @@ -2,4 +2,4 @@ search : 2019-06-14 21:45:24 UTC sunrise : 2019-06-15 10:12:44 UTC sunset : 2019-06-15 01:48:01 UTC moonrise : 2019-06-14 23:02:43 UTC -moonset : 2019-06-15 09:12:24 UTC +moonset : 2019-06-15 09:12:25 UTC diff --git a/generate/ctest.c b/generate/ctest.c index 9c30cdd5..fe5beeec 100644 --- a/generate/ctest.c +++ b/generate/ctest.c @@ -1100,7 +1100,7 @@ static int RiseSet(const char *filename) if (error_minutes > max_minutes) max_minutes = error_minutes; - if (error_minutes > 0.56) + if (error_minutes > 0.57) FAIL("C RiseSet(%s line %d): excessive prediction time error = %lg minutes.\n", filename, lnum, error_minutes); }