From 4b8f435b2a9d3f981a4c65852bca49faf04ede6f Mon Sep 17 00:00:00 2001 From: jim winstead Date: Sat, 5 Jan 2002 02:16:16 +0000 Subject: [PATCH] good grief, positive powers of 0 are well-defined. (code fix coming.) --- ext/standard/tests/math/pow.phpt | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/ext/standard/tests/math/pow.phpt b/ext/standard/tests/math/pow.phpt index 80401e7e56..cbe5efea99 100644 --- a/ext/standard/tests/math/pow.phpt +++ b/ext/standard/tests/math/pow.phpt @@ -48,9 +48,9 @@ FALSE ===@pow(-1, 1.0) FALSE ===@pow(-1, 2.0) FALSE ===@pow( 0,-2.0) FALSE ===@pow( 0,-1.0) -FALSE ===@pow( 0, 0.0) -FALSE ===@pow( 0, 1.0) -FALSE ===@pow( 0, 2.0) + 1.0 === pow( 0, 0.0) + 0.0 === pow( 0, 1.0) + 0.0 === pow( 0, 2.0) 1.0 === pow( 1,-2.0) 1.0 === pow( 1,-1.0) 1.0 === pow( 1, 0.0) @@ -80,9 +80,9 @@ FALSE ===@pow(-1.0, 1.0) FALSE ===@pow(-1.0, 2.0) FALSE ===@pow( 0.0,-2.0) FALSE ===@pow( 0.0,-1.0) -FALSE ===@pow( 0.0, 0.0) -FALSE ===@pow( 0.0, 1.0) -FALSE ===@pow( 0.0, 2.0) + 1.0 === pow( 0.0, 0.0) + 0.0 === pow( 0.0, 1.0) + 0.0 === pow( 0.0, 2.0) 1.0 === pow( 1.0,-2.0) 1.0 === pow( 1.0,-1.0) 1.0 === pow( 1.0, 0.0) -- 2.50.1