scl/test/util.c

15 lines
317 B
C
Raw Normal View History

#include "../src/include/util.h"
2024-10-05 09:24:12 -04:00
#include "registry.h"
#include "unity/unity.h"
2024-10-05 09:24:12 -04:00
int test_is_even() {
UNITY_BEGIN();
TEST_ASSERT_EQUAL(0, is_even(1));
TEST_ASSERT_EQUAL(1, is_even(2));
2024-10-05 09:24:12 -04:00
return UNITY_END();
}
__attribute__((constructor)) void register_tests_util() {
2024-10-05 09:24:12 -04:00
register_test(test_is_even);
}