prettydate.c revision 290000
1#include "config.h" 2 3#include "ntp_stdlib.h" 4#include "ntp_calendar.h" 5#include "ntp_fp.h" 6 7#include "unity.h" 8 9void test_ConstantDate(void); 10 11 12void 13test_ConstantDate(void) { 14 const u_int32 HALF = 2147483648UL; 15 16 l_fp time = {{3485080800UL}, HALF}; /* 2010-06-09 14:00:00.5 */ 17 18 TEST_ASSERT_EQUAL_STRING("cfba1ce0.80000000 Wed, Jun 9 2010 14:00:00.500", 19 gmprettydate(&time)); 20} 21