diff --git a/test/test_input.c b/test/test_input.c index 58d5ee6..76cb1cf 100644 --- a/test/test_input.c +++ b/test/test_input.c @@ -11,6 +11,7 @@ void tearDown(void){ } +//test arrowkeyinput void test_testArrow(void){ char result = getTInput('\033'); @@ -18,43 +19,50 @@ void test_testArrow(void){ TEST_ASSERT_EQUAL_CHAR('ar', result); } +//test input 'w' void test_testw(void){ char result = getTInput('w'); TEST_ASSERT_EQUAL_CHAR('w', result); } +//test input 'a' void test_testa(void){ char result = getTInput('a'); TEST_ASSERT_EQUAL_CHAR('a', result); } +//test input 's' void test_tests(void){ char result = getTInput('s'); TEST_ASSERT_EQUAL_CHAR('s', result); } +//test input 'd' void test_testd(void){ char result = getTInput('d'); TEST_ASSERT_EQUAL_CHAR('d', result); } +//test input 'q' void test_testq(void){ char result = getTInput('q'); TEST_ASSERT_EQUAL_CHAR('q', result); } +//test input 'p' void test_testp(void){ char result = getTInput('p'); TEST_ASSERT_EQUAL_CHAR('p', result); } +//test input invalid void test_testn(void){ char result = getTInput('n'); TEST_ASSERT_EQUAL_CHAR('n', result); } +//test input invalid void test_testg(void){ char result = getTInput('g'); TEST_ASSERT_EQUAL_CHAR('n', result); } -