diff --git a/test/test_userinput.c b/test/test_userinput.c index 2aec85c..c4e5f71 100644 --- a/test/test_userinput.c +++ b/test/test_userinput.c @@ -61,4 +61,12 @@ void test_getu_WithMinAndMax(void) { char *input[] = {"sdf", "4", "10000000", "1167", NULL}; fakeInput = input; TEST_ASSERT_EQUAL_UINT64(1167, getu("", &min, &max)); +} + +void test_getlu_WithMinAndMax(void) { + unsigned long min = 100; + unsigned long max = 100000000; + char *input[] = {"sdf", "-400", "10000000000000", "11001100", NULL}; + fakeInput = input; + TEST_ASSERT_EQUAL_UINT64(11001100, getlu("", &min, &max)); } \ No newline at end of file