Browse Source

testing with invalid input

main
fdai7184 2 years ago
parent
commit
ca3b901593
  1. 6
      test/test_input.c

6
test/test_input.c

@ -66,3 +66,9 @@ void test_testg(void){
char result = getTInput('g'); char result = getTInput('g');
TEST_ASSERT_EQUAL_CHAR('n', result); TEST_ASSERT_EQUAL_CHAR('n', result);
} }
//test input invalid
void test_testg(void){
char result = getTInput('b');
TEST_ASSERT_EQUAL_CHAR('n', result);
}
Loading…
Cancel
Save