From 4fbe2042a87c519472b83c22b0d467a40a5861b7 Mon Sep 17 00:00:00 2001 From: TheUltimateOptimist Date: Mon, 29 Jan 2024 02:17:04 +0100 Subject: [PATCH] added test for getllu 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 c4e5f71..38f0964 100644 --- a/test/test_userinput.c +++ b/test/test_userinput.c @@ -69,4 +69,12 @@ void test_getlu_WithMinAndMax(void) { char *input[] = {"sdf", "-400", "10000000000000", "11001100", NULL}; fakeInput = input; TEST_ASSERT_EQUAL_UINT64(11001100, getlu("", &min, &max)); +} + +void test_getllu_WithMinAndMax(void) { + unsigned long long min = 100; + unsigned long long max = 100000000; + char *input[] = {"sdf", "-400", "10000000000000", "11001100", NULL}; + fakeInput = input; + TEST_ASSERT_EQUAL_UINT64(11001100, getllu("", &min, &max)); } \ No newline at end of file