예제 #1
0
파일: sortTest.c 프로젝트: SanggyuLee/rtos
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));
}
예제 #2
0
파일: main.cpp 프로젝트: rus084/rusefi
void assertFalse(float actual) {
	assertFalseM("", actual);
}