mirror of
https://github.com/Stichting-MINIX-Research-Foundation/netbsd.git
synced 2025-08-08 13:39:25 -04:00
20 lines
419 B
C
20 lines
419 B
C
/* $NetBSD: prettydate.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_ConstantDate(void) {
|
|
const u_int32 HALF = 2147483648UL;
|
|
|
|
l_fp time = {3485080800UL, HALF}; // 2010-06-09 14:00:00.5
|
|
|
|
TEST_ASSERT_EQUAL_STRING("cfba1ce0.80000000 Wed, Jun 9 2010 14:00:00.500",
|
|
gmprettydate(&time));
|
|
}
|