From: jim winstead Date: Sat, 5 Jan 2002 02:16:16 +0000 (+0000) Subject: good grief, positive powers of 0 are well-defined. (code fix coming.) X-Git-Tag: PRE_ISSET_PATCH~288 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4b8f435b2a9d3f981a4c65852bca49faf04ede6f;p=php good grief, positive powers of 0 are well-defined. (code fix coming.) --- 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)