Ejemplo n.º 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));
}
Ejemplo n.º 2
0
void assertFalse(float actual) {
	assertFalseM("", actual);
}