]> CyberLeo.Net >> Repos - FreeBSD/releng/10.2.git/blob - contrib/ntp/tests/sandbox/modetoa.c
- Copy stable/10@285827 to releng/10.2 in preparation for 10.2-RC1
[FreeBSD/releng/10.2.git] / contrib / ntp / tests / sandbox / modetoa.c
1 //#include "config.h"
2 //#include "libntptest.h"
3 #include "unity.h"
4 //#include "ntp_stdlib.h"
5
6
7
8 void test_KnownMode(void) {
9         const int MODE = 3; // Should be "client"
10         TEST_ASSERT_EQUAL_STRING("client", modetoa(MODE));
11
12 //      EXPECT_STREQ("client", modetoa(MODE));
13 }
14
15 void test_UnknownMode(void) {
16         const int MODE = 100;
17
18          TEST_ASSERT_EQUAL_STRING("mode#1001", modetoa(MODE));
19 //      EXPECT_STREQ("mode#100", modetoa(MODE));
20 }