summaryrefslogtreecommitdiffstats
path: root/test/rainbow_oscillator.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/rainbow_oscillator.c')
-rw-r--r--test/rainbow_oscillator.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/rainbow_oscillator.c b/test/rainbow_oscillator.c
new file mode 100644
index 0000000..a529ea2
--- /dev/null
+++ b/test/rainbow_oscillator.c
@@ -0,0 +1,14 @@
+#include <stddef.h>
+#include "ts.h"
+
+bool ts_test_rainbow_oscillator( void )
+{
+ fp_t const x0[] = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21 };
+
+ fp_t const e0[] = { 108.333333, 108.333333, 108.333333, 108.333333, 108.333333, 108.333333, 108.333333, 108.333333 };
+
+ fp_t const * const x[1] = { x0 };
+ fp_t const * const e[1] = { e0 };
+
+ return ts_test(ts_rainbow_oscillator, ts_rainbow_oscillator_offset, x, e, sizeof( x0 ) / sizeof( *x0 ), (ts_constant_t *)NULL, &ts_rainbow_oscillator_p);
+}