#include "unity.h" #include #include void setUp(void){ } void tearDown(void){ } void test_testArrow(void){ char result = getTInput('\033'); TEST_ASSERT_EQUAL_CHAR('ar', result); } void test_testw(void){ char result = getTInput('w'); TEST_ASSERT_EQUAL_CHAR('w', result); } void test_testa(void){ char result = getTInput('a'); TEST_ASSERT_EQUAL_CHAR('a', result); } void test_tests(void){ char result = getTInput('s'); TEST_ASSERT_EQUAL_CHAR('s', result); } void test_testd(void){ char result = getTInput('d'); TEST_ASSERT_EQUAL_CHAR('d', result); } void test_testq(void){ char result = getTInput('q'); TEST_ASSERT_EQUAL_CHAR('q', result); } void test_testp(void){ char result = getTInput('p'); TEST_ASSERT_EQUAL_CHAR('p', result); }