From 575c47e93889233fc1a03e9ea5f2cd61e434b55c Mon Sep 17 00:00:00 2001 From: SanJacobs Date: Fri, 15 Apr 2022 16:25:24 +0200 Subject: Wrote basic tests --- src/main.cpp | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) (limited to 'src/main.cpp') 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; } -- cgit v1.2.1