modetoa.c revision 1.1.1.3
1//#include "config.h" 2//#include "libntptest.h" 3#include "unity.h" 4//#include "ntp_stdlib.h" 5 6 7 8void 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 15void 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} 21