1 /* $NetBSD: uglydate.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_fp.h" 7 8 #include "unity.h" 9 10 void test_ConstantDateTime(void); 11 12 void 13 test_ConstantDateTime(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("3485080800.500000 10:159:14:00:00.500", 19 uglydate(&time)); 20 } 21