You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

56 lines
894 B

#include "unity.h"
#include <input.h>
#include <stdlib.h>
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);
}
void test_testn(void){
char result = getTInput('n');
TEST_ASSERT_EQUAL_CHAR('n', result);
}