summaryrefslogtreecommitdiffstats
path: root/test/addition.c
blob: a913da7d459a67e2965d6abf5652aba334bb3398 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include <stddef.h>
#include "ts.h"

bool ts_test_addition( void )
{
	fp_t x0[] = { -4, -3, -2, -1, 0, 1, 2, 3, 4 };
	fp_t x1[] = { -4, -3, -2, -1, 0, 1, 2, 3, 4 };
	fp_t e0[] = { -8, -6, -4, -2, 0, 2, 4, 6, 8 };

	fp_t const * const x[] = { x0, x1 };
	fp_t const * const e[] = { e0 };

	return ts_test(ts_addition, ts_addition_offset, x, e, sizeof( x0 ) / sizeof( *x0 ), (ts_constant_t *)NULL, &ts_addition_p);
}