@ -46,6 +46,13 @@ void test_usergethd_WithMinAndMax(void) {
TEST_ASSERT_EQUAL_INT(50, usergethd("", &min, &max));
}
void test_usergethd_WithMin(void) {
short min = 13;
char *input[] = {"sdf", "1", "100000", "6000", NULL};
fakeInput = input;
TEST_ASSERT_EQUAL_INT(6000, usergethd("", &min, NULL));
void test_usergetd_WithMinAndMax(void) {
int min = 10;
int max = 100000;