Browse Source

added test for getlld with min and max

remotes/origin/userinput
TheUltimateOptimist 11 months ago
parent
commit
32912f6b55
  1. 8
      test/test_userinput.c

8
test/test_userinput.c

@ -38,3 +38,11 @@ void test_getld_WithMinAndMax(void) {
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));
}
Loading…
Cancel
Save