]> granicus.if.org Git - php/commitdiff
Removed the ceil(-0.5); test. The return value is depedant on system's
authorIlia Alshanetsky <iliaa@php.net>
Sun, 29 Sep 2002 21:45:54 +0000 (21:45 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Sun, 29 Sep 2002 21:45:54 +0000 (21:45 +0000)
libc and even when proper value '-0' is returned, var_dump() converts
it to 0 anyway.

ext/standard/tests/math/floorceil.phpt

index d42c0e86c7d4f35b362b657158f98e6ab162bf63..3ac20946104801327e027956e9e1ab6de9c3ce27 100644 (file)
@@ -4,9 +4,9 @@ Tests for floor en ceil
 --GET--
 --FILE--
 <?php
-    $a = ceil (-0);   $b = ceil (-0.5); $c = ceil (-1);
-    $d = ceil (-1.5); $e = ceil (-1.8); $f = ceil (-2.7);
-    var_dump ($a, $b, $c, $d, $e, $f);
+    $a = ceil (-0);   $b = ceil (-1);  $c = ceil (-1.5); 
+    $d = ceil (-1.8); $e = ceil (-2.7);
+    var_dump ($a, $b, $c, $d, $e);
     
     $a = ceil (0);   $b = ceil (0.5); $c = ceil (1);
     $d = ceil (1.5); $e = ceil (1.8); $f = ceil (2.7);
@@ -22,7 +22,6 @@ Tests for floor en ceil
 ?>  
 --EXPECT--
 float(0)
-float(0)
 float(-1)
 float(-1)
 float(-1)