]> granicus.if.org Git - php/commitdiff
fix tests: better float values
authorRaghubansh Kumar <kraghuba@php.net>
Mon, 3 Dec 2007 12:04:26 +0000 (12:04 +0000)
committerRaghubansh Kumar <kraghuba@php.net>
Mon, 3 Dec 2007 12:04:26 +0000 (12:04 +0000)
ext/standard/tests/strings/vsprintf_variation1.phpt
ext/standard/tests/strings/vsprintf_variation2.phpt

index 3f2c0710b7dcfe252554e911ea3211b738144c53..7d567a7ce9b4a01bcb4788e2920c30e22faf7ed6 100644 (file)
@@ -45,8 +45,8 @@ $values = array(
   // float data
   10.5,
   -10.5,
-  10.5e10,
-  10.6E-10,
+  10.1234567e10,
+  10.7654321E-10,
   .5,
 
   // array data
@@ -120,10 +120,10 @@ string(4) "10.5"
 string(5) "-10.5"
 
  -- Iteration 7 --
-string(12) "105000000000"
+string(12) "101234567000"
 
  -- Iteration 8 --
-string(7) "1.06E-9"
+string(13) "1.07654321E-9"
 
  -- Iteration 9 --
 string(3) "0.5"
@@ -189,7 +189,6 @@ string(0) ""
  -- Iteration 26 --
 string(%d) "Resource id #%d"
 Done
-
 --UEXPECTF--
 *** Testing vsprintf() : with unexpected values for format argument ***
 
@@ -212,10 +211,10 @@ unicode(4) "10.5"
 unicode(5) "-10.5"
 
  -- Iteration 7 --
-unicode(12) "105000000000"
+unicode(12) "101234567000"
 
  -- Iteration 8 --
-unicode(7) "1.06E-9"
+unicode(13) "1.07654321E-9"
 
  -- Iteration 9 --
 unicode(3) "0.5"
index f81f0121a34a66af615f6b5649f04d6782b57310..dbfaba29d776c863da1742ddfba1c1a6e737596d 100644 (file)
@@ -45,8 +45,8 @@ $values = array(
   // float data
   10.5,
   -10.5,
-  10.5e10,
-  10.6E-10,
+  10.1234567e10,
+  10.7654321E-10,
   .5,
 
   // null data
@@ -115,10 +115,10 @@ string(4) "10.5"
 string(5) "-10.5"
 
 -- Iteration 7 --
-string(12) "105000000000"
+string(12) "101234567000"
 
 -- Iteration 8 --
-string(7) "1.06E-9"
+string(13) "1.07654321E-9"
 
 -- Iteration 9 --
 string(3) "0.5"
@@ -175,7 +175,6 @@ bool(false)
 -- Iteration 23 --
 string(%d) "Resource id #%d"
 Done
-
 --UEXPECTF--
 *** Testing vsprintf() : with unexpected values for args argument ***
 
@@ -198,10 +197,10 @@ unicode(4) "10.5"
 unicode(5) "-10.5"
 
 -- Iteration 7 --
-unicode(12) "105000000000"
+unicode(12) "101234567000"
 
 -- Iteration 8 --
-unicode(7) "1.06E-9"
+unicode(13) "1.07654321E-9"
 
 -- Iteration 9 --
 unicode(3) "0.5"