summaryrefslogtreecommitdiffstats
path: root/test/hull_ma.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/hull_ma.c')
-rw-r--r--test/hull_ma.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/hull_ma.c b/test/hull_ma.c
new file mode 100644
index 0000000..ff8182a
--- /dev/null
+++ b/test/hull_ma.c
@@ -0,0 +1,15 @@
+#include <stddef.h>
+#include "ts.h"
+
+bool ts_test_hull_ma( void )
+{
+ fp_t const x0[] = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 };
+
+ fp_t const * const x[] = { x0 };
+
+ fp_t const e[] = { 6.333333, 7.333333, 8.333333, 9.333333, 10.333333 };
+ fp_t const * const exp[] = { e };
+
+ uint_t c = 5;
+ return ts_test(ts_hull_ma, ts_hull_ma_offset, x, exp, sizeof( x0 ) / sizeof( *x0 ), (ts_constant_t *)&c, &ts_hull_ma_p);
+}