blob: 03b384c1d350b4b5de1d6e02441b7d94c4bfb19e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
#include "config.h"
#include "ntp_stdlib.h"
#include "unity.h"
void setUp(void);
void test_KnownMode(void);
void test_UnknownMode(void);
void
setUp(void)
{
init_lib();
return;
}
void
test_KnownMode(void) {
const int MODE = 3; // Should be "client"
TEST_ASSERT_EQUAL_STRING("client", modetoa(MODE));
}
void
test_UnknownMode(void) {
const int MODE = 100;
TEST_ASSERT_EQUAL_STRING("mode#100", modetoa(MODE));
}
|