diff options
author | Xin LI <delphij@FreeBSD.org> | 2016-01-08 08:06:14 +0000 |
---|---|---|
committer | Xin LI <delphij@FreeBSD.org> | 2016-01-08 08:06:14 +0000 |
commit | c373d9289d1987abe45e339b5aa37f05460e977f (patch) | |
tree | eacecf05ade498902c426d07b76ce3d5e1306ffe /tests/libntp/prettydate.c | |
parent | 49b7d963372f963c2eab9435fa69aa1f61326111 (diff) |
Notes
Diffstat (limited to 'tests/libntp/prettydate.c')
-rw-r--r-- | tests/libntp/prettydate.c | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/tests/libntp/prettydate.c b/tests/libntp/prettydate.c index e1292bf6156e6..c940e2a2dd992 100644 --- a/tests/libntp/prettydate.c +++ b/tests/libntp/prettydate.c @@ -6,15 +6,26 @@ #include "unity.h" +void setUp(void); void test_ConstantDate(void); void +setUp(void) +{ + init_lib(); + + return; +} + + +void test_ConstantDate(void) { const u_int32 HALF = 2147483648UL; - l_fp time = {{3485080800UL}, HALF}; /* 2010-06-09 14:00:00.5 */ + l_fp e_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)); + gmprettydate(&e_time)); + return; } |