Browse Source

testing kbhit

main
fdai7184 2 years ago
parent
commit
be79c1507e
  1. 1
      src/input.h
  2. 5
      test/test_input.c

1
src/input.h

@ -4,5 +4,6 @@
char getInput();
char getTInput(char key);
int kbhit(void);
#endif

5
test/test_input.c

@ -72,3 +72,8 @@ void test_testb(void){
char result = getTInput('b');
TEST_ASSERT_EQUAL_CHAR('n', result);
}
void test_testkbhit(void){
int result = kbhit();
TEST_ASSERT_EQUAL_INT(0, result);
}
Loading…
Cancel
Save