scl/test/util.c
Jacob d95c134a54 Test and stuff.
Need to fix testing functions so that every assert is run in each
function of the registry.
2024-09-30 20:55:46 -04:00

20 lines
393 B
C

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