summaryrefslogtreecommitdiffstats
path: root/test/angle_deg_to_rad.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/angle_deg_to_rad.c')
-rw-r--r--test/angle_deg_to_rad.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/angle_deg_to_rad.c b/test/angle_deg_to_rad.c
new file mode 100644
index 0000000..2e73988
--- /dev/null
+++ b/test/angle_deg_to_rad.c
@@ -0,0 +1,13 @@
+#include <stddef.h>
+#include "ts.h"
+
+bool ts_test_angle_deg_to_rad( void )
+{
+ fp_t const x0[] = { 0.000000, 45.000000, 90.000000, 180.000000, 270.000000, 360.000000 };
+ fp_t const e0[] = { 0.000000, 0.785398, 1.570796, 3.141593, 4.712389, 6.283185 };
+
+ fp_t const * const x[1] = { x0 };
+ fp_t const * const e[1] = { e0 };
+
+ return ts_test(ts_angle_deg_to_rad, ts_angle_deg_to_rad_offset, x, e, sizeof( x0 ) / sizeof( *x0 ), (ts_constant_t *)NULL, &ts_angle_deg_to_rad_p);
+}