modetoa.c revision 1.1.1.2
1/* $NetBSD: modetoa.c,v 1.1.1.2 2015/07/10 13:11:13 christos Exp $ */ 2 3//#include "config.h" 4//#include "libntptest.h" 5#include "unity.h" 6//#include "ntp_stdlib.h" 7 8 9 10void test_KnownMode(void) { 11 const int MODE = 3; // Should be "client" 12 TEST_ASSERT_EQUAL_STRING("client", modetoa(MODE)); 13 14// EXPECT_STREQ("client", modetoa(MODE)); 15} 16 17void test_UnknownMode(void) { 18 const int MODE = 100; 19 20 TEST_ASSERT_EQUAL_STRING("mode#1001", modetoa(MODE)); 21// EXPECT_STREQ("mode#100", modetoa(MODE)); 22} 23