scl/test/util.c
2024-10-05 09:35:33 -04:00

19 lines
365 B
C

#include "../src/include/util.h"
#include "registry.h"
#include "unity/unity.h"
void test_is_even() {
TEST_ASSERT_EQUAL(0, is_even(1));;
TEST_ASSERT_EQUAL(1, is_even(2));
}
int test_util() {
UNITY_BEGIN();
RUN_TEST(test_is_even);
return UNITY_END();
}
__attribute__((constructor)) void register_tests_util() {
register_test(test_util);
}