Merge branch 'release-2.140.136'
[feisty_meow.git] / nucleus / library / tests_timely / test_earth_time.cpp
index 716a14b13f23ea4982ea9db24a3910515a5adea9..75b7770f0d50f11d1c1b0df83e2d5fbbf9fba79d 100644 (file)
@@ -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();
 }