// test code for for.c, cse374, muh #include #include #include "for.h" // Assert statements will fail with a message // if not true. int main(int argc, char** argv) { assert(!f(0, 0)); // Test 1: f(0,0) => 0 assert(f(0, 1)); // Test 2: f(0,1) => T assert(f(1, 0)); // Test 3: f(1,0) => T assert(f(1,1)); // Test 4: f(1,1) => T // Test case 5: f(-1,1) => not-0 assert(f(-1,1)); return EXIT_SUCCESS; }