|
|
@ -37,4 +37,12 @@ void test_getld_WithMinAndMax(void) { |
|
|
|
char *input[] = {"sdf", "-400", "10000000000000", "11001100", NULL}; |
|
|
|
fakeInput = input; |
|
|
|
TEST_ASSERT_EQUAL_INT64(11001100, getld("", &min, &max)); |
|
|
|
} |
|
|
|
|
|
|
|
void test_getlld_WithMinAndMax(void) { |
|
|
|
long long min = -100; |
|
|
|
long long max = 100000000; |
|
|
|
char *input[] = {"sdf", "-400", "10000000000000", "11001100", NULL}; |
|
|
|
fakeInput = input; |
|
|
|
TEST_ASSERT_EQUAL_INT64(11001100, getlld("", &min, &max)); |
|
|
|
} |