Example #1
0
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));
}
Example #2
0
void assertFalse(float actual) {
	assertFalseM("", actual);
}