diff --git a/I2_Dobble/numbersTest.c b/I2_Dobble/numbersTest.c index feb7527..5f44b16 100644 --- a/I2_Dobble/numbersTest.c +++ b/I2_Dobble/numbersTest.c @@ -54,28 +54,6 @@ void test_getDuplicate_returns_correct_value(void) TEST_ASSERT_EQUAL_UINT(7, d); } -void test_complete_function_of_numbers(void) -{ - unsigned int len = 50; - unsigned int *arr = createNumbers(len); - TEST_ASSERT_NOT_NULL(arr); - - unsigned int d1 = getDuplicate(arr, len); - TEST_ASSERT_NOT_EQUAL(0, d1); - - int count = 0; - - for (unsigned int i = 0; i < len; i++) - { - if (arr[i] == d1) - count++; - } - - TEST_ASSERT_EQUAL(2, count); - - free(arr); -} - void setUp(void) { } void tearDown(void) { } @@ -87,7 +65,6 @@ int main(void) RUN_TEST(test_createNumbers_has_exactly_one_duplicate); RUN_TEST(test_createNumbers_has_correct_value_range); RUN_TEST(test_getDuplicate_returns_correct_value); - RUN_TEST(test_complete_function_of_numbers); return UNITY_END(); } \ No newline at end of file