int main()
{
int i;
- int num_test = sizeof(tests) / sizeof(struct test);
+ const int num_test = sizeof(tests) / sizeof(struct test);
const time_t test_time = time(nullptr);
plan_tests(NUM_TESTS_PER_TEST * num_test);
if (!result && tests[i].is_valid) {
fprintf(stderr, "Failed to get result\n");
goto loop;
- } else if (!result && tests[i].is_valid == false) {
+ } else if (!result && !tests[i].is_valid) {
pass("Returned null as expected");
goto loop;
}