29bool compare_f32_arrays(
const float* a,
const float* b,
size_t count,
float epsilon = 0.001f);
46template<
typename TestFunc>
47void run_test(
const char* test_name, TestFunc test_func,
fl::vector< TestResult > test_results
void push_back(const T &value) FL_NOEXCEPT
void print_test_result(const TestResult &result)
Print test result to serial.
void run_test(const char *test_name, TestFunc test_func, fl::vector< TestResult > &results, int &total_tests, int &passed_tests, int &failed_tests)
Run a single test and record result.
void print_final_banner(int failed_tests)
Print final result banner (PASS/FAIL)
bool compare_u8_arrays(const uint8_t *a, const uint8_t *b, size_t count)
Compare two uint8_t arrays element-wise.
void print_summary(const fl::vector< TestResult > &test_results, int total_tests, int passed_tests, int failed_tests)
Print summary table of all test results.
bool compare_f32_arrays(const float *a, const float *b, size_t count, float epsilon)
Compare two float arrays element-wise with epsilon tolerance.
Stores the result of a single SIMD test.