#include #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); }