2024-09-30 20:55:46 -04:00
|
|
|
#include "../src/include/util.h"
|
2024-10-05 09:24:12 -04:00
|
|
|
#include "registry.h"
|
|
|
|
#include "unity/unity.h"
|
2024-09-30 09:00:37 -04:00
|
|
|
|
2024-10-05 09:24:12 -04:00
|
|
|
int test_is_even() {
|
|
|
|
UNITY_BEGIN();
|
2024-09-30 09:00:37 -04:00
|
|
|
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();
|
2024-09-30 20:55:46 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
__attribute__((constructor)) void register_tests_util() {
|
2024-10-05 09:24:12 -04:00
|
|
|
register_test(test_is_even);
|
2024-09-30 09:00:37 -04:00
|
|
|
}
|