A_Test void givenAnUnsortedVector_whenSorting_thenVectorIsSorted(void) { int testling[] = { 5, 4, 3, 2, 1 }; assertFalseM("This vector is not yet sorted.", isSorted(testling, 5, sizeof(int), &compareInt)); qsort(testling, 5, sizeof(int), &compareInt); assertTrueM("This vector now is sorted.", isSorted(testling, 5, sizeof(int), &compareInt)); }
void assertFalse(float actual) { assertFalseM("", actual); }