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);