UNCLASSIFIED

Skip to content
Snippets Groups Projects
Commit 63b28ff2 authored by Kenton Groombridge's avatar Kenton Groombridge
Browse files

Update TestArrayFunctions.c

parent cdf3f6d6
Branches
No related merge requests found
Pipeline #81738 failed with stages
in 8 seconds
......@@ -90,7 +90,7 @@ void test_get_min()
int arr[] = { 0, 23, 14, 12, 9 }; // The lowest number of all is 0
size = sizeof(arr) / sizeof(arr[0]);
CU_ASSERT_EQUAL(0, getMin(arr, size)); // should return 0
CU_ASSERT_EQUAL(1, getMin(arr, size)); // should return 0
getMin(NULL, 0); // Should set errnoto -1
CU_ASSERT_EQUAL(-1, errno); // Test it
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment