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