diff options
Diffstat (limited to 'test/performance_index.c')
| -rw-r--r-- | test/performance_index.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/test/performance_index.c b/test/performance_index.c new file mode 100644 index 0000000..e31ec98 --- /dev/null +++ b/test/performance_index.c @@ -0,0 +1,16 @@ +#include <stddef.h> +#include "ts.h" + +bool ts_test_performance_index( void ) +{ + fp_t const x0[] = { 10, 20, 30, 40, 50 }; + fp_t const x1[] = { 11, 22, 33, 44, 55 }; + fp_t const x2[] = { 9, 18, 28, 38, 48 }; + fp_t const x3[] = { 12, 21, 31, 41, 51 }; + fp_t const e0[] = { 20, 5, 3.333333, 2.5, 2 }; + + fp_t const * const x[] = { x0, x1, x2, x3 }; + fp_t const * const e[1] = { e0 }; + + return ts_test(ts_performance_index, ts_performance_index_offset, x, e, sizeof( x0 ) / sizeof( *x0 ), (ts_constant_t *)NULL, &ts_performance_index_p); +} |