Browse Source

testing arrow key input

main
fdai7184 2 years ago
parent
commit
8b5248a240
  1. 19
      test/test_input.c

19
test/test_input.c

@ -0,0 +1,19 @@
#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);
}
Loading…
Cancel
Save