diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/test.cpp | 4 | ||||
-rwxr-xr-x | src/time.h | 1 |
2 files changed, 5 insertions, 0 deletions
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"; @@ -6,6 +6,7 @@ #include <string.h> #include <algorithm> #include <math.h> +#include <cmath> enum weekday{ monday, |