]> CyberLeo.Net >> Repos - FreeBSD/releng/10.2.git/blob - contrib/ntp/tests/libntp/g_modetoa.cpp
Fix a regression with SA-15:24 patch that prevented NIS from
[FreeBSD/releng/10.2.git] / contrib / ntp / tests / libntp / g_modetoa.cpp
1 #include "g_libntptest.h"
2
3 class modetoaTest : public libntptest {
4 };
5
6 TEST_F(modetoaTest, KnownMode) {
7         const int MODE = 3; // Should be "client"
8
9         EXPECT_STREQ("client", modetoa(MODE));
10 }
11
12 TEST_F(modetoaTest, UnknownMode) {
13         const int MODE = 100;
14
15         EXPECT_STREQ("mode#100", modetoa(MODE));
16 }