uglydate.c revision 1.1.1.2
1/* $NetBSD: uglydate.c,v 1.1.1.2 2015/07/10 13:11:14 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 12void 13test_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