From f98e6cd82f7f9b872f56c8174485df06316e9863 Mon Sep 17 00:00:00 2001 From: fdai7184 Date: Fri, 10 Feb 2023 23:42:32 +0100 Subject: [PATCH] last test --- test/test_input.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/test_input.c b/test/test_input.c index 3e1c960..e3511e9 100644 --- a/test/test_input.c +++ b/test/test_input.c @@ -73,6 +73,12 @@ void test_testb(void){ TEST_ASSERT_EQUAL_CHAR('n', result); } +//test input invalid +void test_testc(void){ + char result = getTInput('c'); + TEST_ASSERT_EQUAL_CHAR('n', result); +} + void test_testkbhit(void){ int result = kbhit(); TEST_ASSERT_EQUAL_INT(0, result);