diff options
author | SanJacobs | 2022-04-19 00:21:04 +0200 |
---|---|---|
committer | SanJacobs | 2022-04-19 00:21:04 +0200 |
commit | 89ffc2637b6b8e33f55728e0132d62749c53ec1d (patch) | |
tree | 492d6602da604ce599a8941efa63557c112fe0c7 /src/main.cpp | |
parent | 181442ab4256f3c12ef0a62ed44e6e9fd0f58095 (diff) | |
download | satscalc-89ffc2637b6b8e33f55728e0132d62749c53ec1d.tar.gz satscalc-89ffc2637b6b8e33f55728e0132d62749c53ec1d.tar.bz2 satscalc-89ffc2637b6b8e33f55728e0132d62749c53ec1d.zip |
Tested and bugfixed delta-generation
I also added a beautiful operator<< overloading for deltas, I think it
is very pretty.
Diffstat (limited to 'src/main.cpp')
-rwxr-xr-x | src/main.cpp | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/src/main.cpp b/src/main.cpp index 91f04dd..e554fb1 100755 --- a/src/main.cpp +++ b/src/main.cpp @@ -40,6 +40,16 @@ int main(int argc, char* argv[]) std::cout << "\nWorkday:\n"; std::cout << timeprint(workday) << std::endl; + + std::cout << "\n\n --- TIME MATH TEST ---\n\n"; + + std::cout << "Difference between calltime and wraptime:\n"; + std::cout << (calltime-wraptime) << std::endl; + std::cout << "Other way around, should show same result:\n"; + std::cout << (calltime-wraptime) << std::endl; + std::cout << "As method on workday:\n"; + std::cout << (workday.hourcount()) << std::endl; + std::cout << "\nSplitting workday into workday and second_half...\n"; moment splitpoint{0, 12, 27, 11, 2010}; timeblock second_half{timesplit(workday, splitpoint)}; @@ -55,8 +65,6 @@ int main(int argc, char* argv[]) std::cout << timeprint(timesplit(second_half, erronious_splitpoint)); - std::cout << "\n\n --- TIME MATH TEST ---\n\n"; - moment testtime{30, 8, 25, 2, 2012}; std::cout << "Testtime: " << timeprint(testtime) << std::endl; @@ -88,6 +96,7 @@ int main(int argc, char* argv[]) std::cout << "Testtime: " << timeprint(testtime) << std::endl; + std::cout << "\n\n --- TIME INPUT TEST ---\n\n"; moment inputmoment = timeinput(); |