1 #include "config.h" 2 3 #include "ntp_stdlib.h" 4 #include "ntp_fp.h" 5 6 #include "unity.h" 7 8 void setUp(void); 9 void test_ConstantDateTime(void); 10 11 12 void 13 setUp(void) 14 { 15 init_lib(); 16 17 return; 18 } 19 20 void 21 test_ConstantDateTime(void) 22 { 23 const u_int32 HALF = 2147483648UL; 24 25 l_fp e_time = {{3485080800UL}, HALF}; /* 2010-06-09 14:00:00.5 */ 26 27 TEST_ASSERT_EQUAL_STRING("3485080800.500000 10:159:14:00:00.500", 28 uglydate(&e_time)); 29 return; 30 } 31