|
@ -73,6 +73,12 @@ void test_testb(void){ |
|
|
TEST_ASSERT_EQUAL_CHAR('n', result); |
|
|
TEST_ASSERT_EQUAL_CHAR('n', result); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
//test input invalid |
|
|
|
|
|
void test_testc(void){ |
|
|
|
|
|
char result = getTInput('c'); |
|
|
|
|
|
TEST_ASSERT_EQUAL_CHAR('n', result); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
void test_testkbhit(void){ |
|
|
void test_testkbhit(void){ |
|
|
int result = kbhit(); |
|
|
int result = kbhit(); |
|
|
TEST_ASSERT_EQUAL_INT(0, result); |
|
|
TEST_ASSERT_EQUAL_INT(0, result); |
|
|