summaryrefslogtreecommitdiff
path: root/tests/sandbox/modetoa.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/sandbox/modetoa.c')
-rw-r--r--tests/sandbox/modetoa.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/sandbox/modetoa.c b/tests/sandbox/modetoa.c
new file mode 100644
index 0000000000000..811eef626c8f9
--- /dev/null
+++ b/tests/sandbox/modetoa.c
@@ -0,0 +1,20 @@
+//#include "config.h"
+//#include "libntptest.h"
+#include "unity.h"
+//#include "ntp_stdlib.h"
+
+
+
+void test_KnownMode(void) {
+ const int MODE = 3; // Should be "client"
+ TEST_ASSERT_EQUAL_STRING("client", modetoa(MODE));
+
+// EXPECT_STREQ("client", modetoa(MODE));
+}
+
+void test_UnknownMode(void) {
+ const int MODE = 100;
+
+ TEST_ASSERT_EQUAL_STRING("mode#1001", modetoa(MODE));
+// EXPECT_STREQ("mode#100", modetoa(MODE));
+}