summaryrefslogtreecommitdiff
path: root/ext/POSIX/t
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2014-08-29 14:56:43 -0400
committerJarkko Hietaniemi <jhi@iki.fi>2014-08-31 17:53:06 -0400
commit5716d070ddcad04a9a92182a0aaaf5f21fa82a33 (patch)
treebf9f7b2ddd6f757c72f2c224ab8c71869f508189 /ext/POSIX/t
parentbfce4ab34bd059d6d670b9f2fa1e3504674b4a3d (diff)
downloadperl-5716d070ddcad04a9a92182a0aaaf5f21fa82a33.tar.gz
POSIX math: Have only one not_here for each API.
Diffstat (limited to 'ext/POSIX/t')
-rw-r--r--ext/POSIX/t/math.t6
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/POSIX/t/math.t b/ext/POSIX/t/math.t
index 072fe823fe..e0f5705016 100644
--- a/ext/POSIX/t/math.t
+++ b/ext/POSIX/t/math.t
@@ -72,7 +72,7 @@ SKIP: {
}
is(fpclassify(1), FP_NORMAL, "fpclassify 1");
is(fpclassify(0), FP_ZERO, "fpclassify 0");
- is(fpclassify(INFINITY), FP_INFINITE, "fpclassify Inf");
+ is(fpclassify(INFINITY), FP_INFINITE, "fpclassify INFINITY");
is(fpclassify(NAN), FP_NAN, "fpclassify NAN");
}
SKIP: {
@@ -99,8 +99,8 @@ SKIP: {
unless ($Config{d_signbit}) {
skip "no signbit", 2;
}
- is(signbit(2), 0, "signbit 2");
- is(signbit(-2), 1, "signbit -2");
+ is(signbit(2), 0, "signbit 2"); # zero
+ ok(signbit(-2), "signbit -2"); # non-zero
}
is(round(2.25), 2, "round 2.25");
is(round(-2.25), -2, "round -2.25");