|
@ -31,6 +31,13 @@ void test_gets_WithMax(void) { |
|
|
TEST_ASSERT_EQUAL_CHAR_ARRAY("dddd", actual, strlen(actual)); |
|
|
TEST_ASSERT_EQUAL_CHAR_ARRAY("dddd", actual, strlen(actual)); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void test_gets_WithAnyLength(void) { |
|
|
|
|
|
char *input[] = {"dfdfdfdf", NULL}; |
|
|
|
|
|
fakeInput = input; |
|
|
|
|
|
char *actual = gets("", NULL, NULL); |
|
|
|
|
|
TEST_ASSERT_EQUAL_CHAR_ARRAY("dfdfdfdf", actual, strlen(actual)); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
void test_gethd_WithMinAndMax(void) { |
|
|
void test_gethd_WithMinAndMax(void) { |
|
|
short min = 10; |
|
|
short min = 10; |
|
|
short max = 100; |
|
|
short max = 100; |
|
|