cvs: php4 /ext/standard/tests/math pow.phpt

From: Date: Sat, 05 Jan 2002 02:16:16 +0000
Subject: cvs: php4 /ext/standard/tests/math pow.phpt
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-8949@lists.php.net to get a copy of this message
jimw Fri Jan 4 21:16:16 2002 EDT Modified files: /php4/ext/standard/tests/math pow.phpt Log: good grief, positive powers of 0 are well-defined. (code fix coming.) Index: php4/ext/standard/tests/math/pow.phpt diff -u php4/ext/standard/tests/math/pow.phpt:1.7 php4/ext/standard/tests/math/pow.phpt:1.8 --- php4/ext/standard/tests/math/pow.phpt:1.7 Sun Dec 16 08:04:02 2001 +++ php4/ext/standard/tests/math/pow.phpt Fri Jan 4 21:16:16 2002 @@ -3,7 +3,7 @@ --POST-- --GET-- --FILE-- -<?php // $Id: pow.phpt,v 1.7 2001/12/16 13:04:02 derick Exp $ +<?php // $Id: pow.phpt,v 1.8 2002/01/05 02:16:16 jimw Exp $ define('LONG_MAX', is_int(5000000000)? 9223372036854775807 : 0x7FFFFFFF); define('LONG_MIN', -LONG_MAX - 1); @@ -48,9 +48,9 @@ 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, 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)

« previous php.cvs (#8949) next »