diff options
Diffstat (limited to 'contrib/ntp/tests/libntp/g_numtoa.cpp')
-rw-r--r-- | contrib/ntp/tests/libntp/g_numtoa.cpp | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/contrib/ntp/tests/libntp/g_numtoa.cpp b/contrib/ntp/tests/libntp/g_numtoa.cpp deleted file mode 100644 index a68e80d..0000000 --- a/contrib/ntp/tests/libntp/g_numtoa.cpp +++ /dev/null @@ -1,18 +0,0 @@ -#include "g_libntptest.h" - -class numtoaTest : public libntptest { -}; - -TEST_F(numtoaTest, Address) { - u_int32 input = htonl(3221225472UL+512UL+1UL); // 192.0.2.1 - - EXPECT_STREQ("192.0.2.1", numtoa(input)); -} - -TEST_F(numtoaTest, Netmask) { - // 255.255.255.0 - u_int32 hostOrder = 255UL*256UL*256UL*256UL + 255UL*256UL*256UL + 255UL*256UL; - u_int32 input = htonl(hostOrder); - - EXPECT_STREQ("255.255.255.0", numtoa(input)); -} |