]> granicus.if.org Git - php/commitdiff
Adjusting tests to use EXPECTF (faster testing) and adjusting 5_2 version to lack...
authorRafael Machado Dohms <rdohms@php.net>
Sun, 19 Jul 2009 22:16:35 +0000 (22:16 +0000)
committerRafael Machado Dohms <rdohms@php.net>
Sun, 19 Jul 2009 22:16:35 +0000 (22:16 +0000)
ext/gd/tests/imagecolorallocate_variation3.phpt
ext/gd/tests/imagecolorallocate_variation4.phpt

index 6bdf2596da38e3117243ce0efa6d1af60087102c..5b512d23287bf25677df46d9b1b13be80f5a671b 100644 (file)
@@ -55,8 +55,8 @@ $values = array(
       // float data
       'float 10.5' => 10.5,
       'float -10.5' => -10.5,
-      'float 10.1234567e10' => 10.1234567e10,
-      'float 10.7654321E-10' => 10.7654321E-10,
+      'float 10.1234567e5' => 10.1234567e5,
+      'float 10.7654321E-5' => 10.7654321E-5,
       'float .5' => .5,
 
       // array data
@@ -114,10 +114,10 @@ int(657930)
 --float -10.5--
 int(652810)
 
---float 10.1234567e10--
-int(217143306)
+--float 10.1234567e5--
+int(259815690)
 
---float 10.7654321E-10--
+--float 10.7654321E-5--
 int(655370)
 
 --float .5--
index f170e4ad9d53960506a5462fe364667ecdd97f9b..ce6b6bd86a0eb45cec51dc55e23dfee4f67f9f7a 100644 (file)
@@ -114,7 +114,7 @@ int(657930)
 int(657910)
 
 --float 10.1234567e10--
-bool(false)
+int(657919)
 
 --float 10.7654321E-10--
 int(657920)