diff options
Diffstat (limited to 'tests/un/math.c')
-rw-r--r-- | tests/un/math.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/un/math.c b/tests/un/math.c index 8b8df67..87bea6b 100644 --- a/tests/un/math.c +++ b/tests/un/math.c @@ -3,9 +3,9 @@ int main() { // Lerping { - f64 d; + double d; real r; - f32 f; + float f; r = un_m_lerpr(1.0f, 2.0f, 0.5f); assert(fabs(r - 1.5f) < EPSILON); @@ -19,17 +19,17 @@ int main() { // Test Bezier curve functions { - f64 d; + double d; real r; - f32 f; + float f; - un_m_bezierf(&f, 0.0f, 1.0f, 2.0f, 3.0f, 0.5f); + f = un_m_bezierf(0.0f, 1.0f, 2.0f, 3.0f, 0.5f); assert(fabsf(f - 1.5f) < EPSILON); - un_m_bezierd(&d, 0.0, 1.0, 2.0, 3.0, 0.5); + d = un_m_bezierd(0.0, 1.0, 2.0, 3.0, 0.5); assert(fabs(d - 1.5) < EPSILON); - un_m_bezierr(&r, 0.0, 1.0, 2.0, 3.0, 0.5); + r = un_m_bezierr(0.0, 1.0, 2.0, 3.0, 0.5); assert(fabs(r - 1.5) < EPSILON); } |