#include #include #include "ts.h" bool ts_test_minmax( void ) { uint_t k = 3; fp_t const x[] = { 1, 3, 2, 5, 4, 1, 6, 3, 2, 4 }; fp_t const emin[] = { 1, 2, 2, 1, 1, 1, 2, 2 }; fp_t const emax[] = { 3, 5, 5, 5, 6, 6, 6, 4 }; fp_t const * const inp[1] = { x }; fp_t const * const exp[2] = { emin, emax }; return ts_test(ts_minmax, ts_minmax_offset, inp, exp, sizeof( x ) / sizeof( *x ), (ts_constant_t *)&k, &ts_minmax_p); }