diff --git a/tests/22_floating_point.c b/tests/22_floating_point.c index 6673c19..7261abd 100644 --- a/tests/22_floating_point.c +++ b/tests/22_floating_point.c @@ -33,3 +33,8 @@ printf("%f\n", a); // prefix operators printf("%f\n", +12.34); printf("%f\n", -12.34); + +// type coercion +a = 2; +printf("%f\n", a); +printf("%f\n", sin(2)); diff --git a/tests/22_floating_point.expect b/tests/22_floating_point.expect index efeed32..f4d2266 100644 --- a/tests/22_floating_point.expect +++ b/tests/22_floating_point.expect @@ -12,3 +12,5 @@ 0.21733 12.34 -12.34 +2.0 +0.9