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.
 
 
 
 

29 lines
407 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);
}