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