diff options
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; } |