X-Git-Url: https://feistymeow.org/gitweb/?p=feisty_meow.git;a=blobdiff_plain;f=nucleus%2Flibrary%2Ftests_timely%2Ftest_earth_time.cpp;fp=nucleus%2Flibrary%2Ftests_timely%2Ftest_earth_time.cpp;h=75b7770f0d50f11d1c1b0df83e2d5fbbf9fba79d;hp=716a14b13f23ea4982ea9db24a3910515a5adea9;hb=de0da7f2f7958d4ba652ff2ef5c79991700141ac;hpb=a4c99c6006b3aa20b5f65f02c2d30db7e790083a diff --git a/nucleus/library/tests_timely/test_earth_time.cpp b/nucleus/library/tests_timely/test_earth_time.cpp index 716a14b1..75b7770f 100644 --- a/nucleus/library/tests_timely/test_earth_time.cpp +++ b/nucleus/library/tests_timely/test_earth_time.cpp @@ -59,6 +59,7 @@ public: void run_test_01(); void run_test_02(); + void run_test_03(); }; ////////////// @@ -118,6 +119,22 @@ void test_earth_time::run_test_02() // test leap years // test lotso things. +} + +void test_earth_time::run_test_03() +{ + FUNCDEF("run_test_03"); + // test out the now and greenwich_now methods. + +//hmmm: what are some ways to test this? + + time_locus curr_now = now(); +LOG(astring("now() returned locus: ") + curr_now.text_form_long(clock_time::MILITARY, day_in_year::LONG_MONTH | day_in_year::INCLUDE_DAY, time_locus::LONG_YEAR)); + + time_locus curr_green = greenwich_now(); +LOG(astring("greenwich_now() returned locus: ") + curr_green.text_form_long(clock_time::MILITARY, day_in_year::LONG_MONTH | day_in_year::INCLUDE_DAY, time_locus::LONG_YEAR)); + + } int test_earth_time::execute() @@ -126,6 +143,7 @@ int test_earth_time::execute() run_test_01(); run_test_02(); + run_test_03(); return final_report(); }