2015-10-15 10:25:28 +02:00

21 lines
410 B
C

/* $NetBSD: uglydate.c,v 1.1.1.2 2015/07/10 13:11:14 christos Exp $ */
#include "config.h"
#include "ntp_stdlib.h"
#include "ntp_calendar.h"
#include "ntp_fp.h"
#include "unity.h"
void
test_ConstantDateTime(void) {
const u_int32 HALF = 2147483648UL;
l_fp time = {3485080800UL, HALF}; // 2010-06-09 14:00:00.5
TEST_ASSERT_EQUAL_STRING("3485080800.500000 10:159:14:00:00.500",
uglydate(&time));
}