]> CyberLeo.Net >> Repos - FreeBSD/releng/10.2.git/blob - contrib/ntp/tests/sandbox/uglydate.c
- Copy stable/10@285827 to releng/10.2 in preparation for 10.2-RC1
[FreeBSD/releng/10.2.git] / contrib / ntp / tests / sandbox / uglydate.c
1 #include "config.h"
2 #include "ntp_fp.h"
3 #include "unity.h"
4
5 //#include "ntp_stdlib.h"
6 //#include "libntptest.h"
7
8 void
9 test_ConstantDateTime(void) {
10         const u_int32 HALF = 2147483648UL;
11
12         l_fp time = {3485080800UL, HALF}; // 2010-06-09 14:00:00.5
13
14         TEST_ASSERT_EQUAL_STRING("3485080800.500000 10:159:14:00:00.500",
15                                  uglydate(&time));
16 }