diff options
author | SanJacobs | 2022-04-15 16:25:24 +0200 |
---|---|---|
committer | SanJacobs | 2022-04-15 16:25:24 +0200 |
commit | 575c47e93889233fc1a03e9ea5f2cd61e434b55c (patch) | |
tree | a11a2cfa74396df316c9d30b9d827af830a17f8e | |
parent | d46f4b465d72a35de7e8796767dbee6c87c08cf1 (diff) | |
download | satscalc-575c47e93889233fc1a03e9ea5f2cd61e434b55c.tar.gz satscalc-575c47e93889233fc1a03e9ea5f2cd61e434b55c.tar.bz2 satscalc-575c47e93889233fc1a03e9ea5f2cd61e434b55c.zip |
Wrote basic tests
-rwxr-xr-x | src/main.cpp | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/src/main.cpp b/src/main.cpp index 910c369..c241771 100755 --- a/src/main.cpp +++ b/src/main.cpp @@ -37,9 +37,23 @@ int main() moment wraptime{30, 16, 27, 11, 2010}; timeblock workday{calltime, wraptime}; + std::cout << " --- TEST ---\n\n"; + std::cout << "Calltime: " << timeprint(calltime) << std::endl; + std::cout << "Wraptime: " << timeprint(wraptime) << std::endl; + + std::cout << "\nWorkday:\n"; + std::cout << timeprint(workday.start) << " --> " << timeprint(workday.end) << 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)}; + + std::cout << "\nSplitpoint: " << timeprint(splitpoint) << std::endl; + std::cout << "\nWorkday:\n"; + std::cout << timeprint(workday.start) << " --> " << timeprint(workday.end) << std::endl; + std::cout << "\nSecond_half:\n"; + std::cout << timeprint(second_half.start) << " --> " << timeprint(second_half.end) << std::endl; - std::cout << "Testing 123\n"; - std::cout << timeprint(workday.start) << std::endl; return 0; } |