From b493287ba0d85799fd0c01c1d84e6eb6b781bfd6 Mon Sep 17 00:00:00 2001 From: San Jacobs Date: Fri, 26 Aug 2022 12:41:48 +0200 Subject: Added test of easter predictor --- src/test.cpp | 4 ++++ src/time.h | 1 + test.sh | 4 +++- 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/src/test.cpp b/src/test.cpp index d5b2d22..0b97b4a 100644 --- a/src/test.cpp +++ b/src/test.cpp @@ -82,6 +82,10 @@ void test(){ std::cout << "Testtime: " << timeprint(testtime) << std::endl; + std::cout << "\n\n --- HOLIDAY TEST ---\n\n"; + std::cout << "Easter 2022: " << timeprint(gaussEaster(2022)) << std::endl; + std::cout << "Easter 2030: " << timeprint(gaussEaster(2030)) << std::endl; + std::cout << "Easter 2057: " << timeprint(gaussEaster(2057)) << std::endl; std::cout << "\n\n --- TIME INPUT TEST ---\n\n"; diff --git a/src/time.h b/src/time.h index b9a17d0..8ff5ecf 100755 --- a/src/time.h +++ b/src/time.h @@ -6,6 +6,7 @@ #include #include #include +#include enum weekday{ monday, diff --git a/test.sh b/test.sh index 5a8167a..8b4bbca 100755 --- a/test.sh +++ b/test.sh @@ -1,6 +1,6 @@ ./satscalc <