summaryrefslogtreecommitdiffstats
path: root/test/angle_deg_to_rad.c
blob: 2e7398874cde6d738222436c42223363dd266742 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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);
}