summaryrefslogtreecommitdiff
path: root/math/libm-test.c
diff options
context:
space:
mode:
Diffstat (limited to 'math/libm-test.c')
-rw-r--r--math/libm-test.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/math/libm-test.c b/math/libm-test.c
index a7a53cb6bc..0c65eb174f 100644
--- a/math/libm-test.c
+++ b/math/libm-test.c
@@ -572,6 +572,10 @@ cbrt_test (void)
check ("cbrt (+0) == +0", FUNC(cbrt) (0.0), 0.0);
check ("cbrt (-0) == -0", FUNC(cbrt) (minus_zero), minus_zero);
+ check_isinfp ("cbrt (+inf) == +inf", FUNC(cbrt) (plus_infty));
+ check_isinfn ("cbrt (-inf) == -inf", FUNC(cbrt) (minus_infty));
+ check_isnan ("cbrt (NaN) == NaN", FUNC(cbrt) (nan_value));
+
check ("cbrt (8) == 2", FUNC(cbrt) (8), 2);
check ("cbrt (-27) == -3", FUNC(cbrt) (-27.0), -3.0);
}