From 32912f6b55ed5540dbbbf5c7739888c3f9d4916a Mon Sep 17 00:00:00 2001 From: TheUltimateOptimist Date: Mon, 29 Jan 2024 02:10:11 +0100 Subject: [PATCH] added test for getlld with min and max --- test/test_userinput.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/test/test_userinput.c b/test/test_userinput.c index 7825375..157f5b0 100644 --- a/test/test_userinput.c +++ b/test/test_userinput.c @@ -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)); } \ No newline at end of file