]> granicus.if.org Git - php/commitdiff
fix test for linux64 - choosing smaller float values
authorRaghubansh Kumar <kraghuba@php.net>
Fri, 16 Nov 2007 17:35:38 +0000 (17:35 +0000)
committerRaghubansh Kumar <kraghuba@php.net>
Fri, 16 Nov 2007 17:35:38 +0000 (17:35 +0000)
ext/standard/tests/strings/strcspn_variation3.phpt
ext/standard/tests/strings/strspn_variation3.phpt
ext/standard/tests/strings/strspn_variation4.phpt

index ae84f51cd50a6fcf15b17018f1bfd1322d06bc31..1c735dccc79f7e29741e1b67a2377cf952b61482 100644 (file)
@@ -43,8 +43,8 @@ $values = array(
       // float data
       10.5,
       -10.5,
-      10.1234567e10,
-      10.7654321E-10,
+      10.1234567e8,
+      10.7654321E-8,
       .5,
 
       // array data
@@ -109,11 +109,11 @@ int(0)
 int(0)
 int(0)
 
--- Iteration with start value as "101234567000" --
-int(0)
-int(0)
+-- Iteration with start value as "1012345670" --
+bool(false)
+bool(false)
 
--- Iteration with start value as "1.07654321E-9" --
+-- Iteration with start value as "1.07654321E-7" --
 int(0)
 int(0)
 
@@ -252,11 +252,11 @@ int(0)
 int(0)
 int(0)
 
--- Iteration with start value as "101234567000" --
-int(0)
-int(0)
+-- Iteration with start value as "1012345670" --
+bool(false)
+bool(false)
 
--- Iteration with start value as "1.07654321E-9" --
+-- Iteration with start value as "1.07654321E-7" --
 int(0)
 int(0)
 
@@ -376,7 +376,7 @@ int(0)
 int(0)
 int(0)
 
--- Iteration with start value as "Resource id #5" --
+-- Iteration with start value as "Resource id #%d" --
 
 Warning: strcspn() expects parameter 3 to be long, resource given in %s on line %d
 NULL
index 541155938be6859961157d4dd558e1f22e6f199d..c04bf50a59587b9b90519942a42ce2012973069b 100644 (file)
@@ -43,8 +43,8 @@ $values = array(
       // float data
       10.5,
       -10.5,
-      10.1234567e10,
-      10.7654321E-10,
+      10.1234567e8,
+      10.7654321E-8,
       .5,
 
       // array data
@@ -109,11 +109,11 @@ int(0)
 int(2)
 int(2)
 
--- Iteration with start value as "101234567000" --
-int(2)
-int(2)
+-- Iteration with start value as "1012345670" --
+bool(false)
+bool(false)
 
--- Iteration with start value as "1.07654321E-9" --
+-- Iteration with start value as "1.07654321E-7" --
 int(2)
 int(2)
 
@@ -252,11 +252,11 @@ int(0)
 int(2)
 int(2)
 
--- Iteration with start value as "101234567000" --
-int(2)
-int(2)
+-- Iteration with start value as "1012345670" --
+bool(false)
+bool(false)
 
--- Iteration with start value as "1.07654321E-9" --
+-- Iteration with start value as "1.07654321E-7" --
 int(2)
 int(2)
 
@@ -376,7 +376,7 @@ int(2)
 int(2)
 int(2)
 
--- Iteration with start value as "Resource id #5" --
+-- Iteration with start value as "Resource id #%d" --
 
 Warning: strspn() expects parameter 3 to be long, resource given in %s on line %d
 NULL
index 3d527940452a95e0eb88d7500da0f43a89f2ca60..c5a7ea1f4f098fe0d841aead135cb1c68b5b0aee 100644 (file)
@@ -43,8 +43,8 @@ $values = array(
       // float data
       10.5,
       -10.5,
-      10.1234567e10,
-      10.7654321E-10,
+      10.1234567e8,
+      10.7654321E-8,
       .5,
 
       // array data
@@ -106,10 +106,10 @@ int(2)
 -- Iteration with len value as "-10.5" --
 int(0)
 
--- Iteration with len value as "101234567000" --
-int(0)
+-- Iteration with len value as "1012345670" --
+int(2)
 
--- Iteration with len value as "1.07654321E-9" --
+-- Iteration with len value as "1.07654321E-7" --
 int(0)
 
 -- Iteration with len value as "0.5" --
@@ -203,10 +203,10 @@ int(2)
 -- Iteration with len value as "-10.5" --
 int(0)
 
--- Iteration with len value as "101234567000" --
-int(0)
+-- Iteration with len value as "1012345670" --
+int(2)
 
--- Iteration with len value as "1.07654321E-9" --
+-- Iteration with len value as "1.07654321E-7" --
 int(0)
 
 -- Iteration with len value as "0.5" --
@@ -286,7 +286,7 @@ int(0)
 -- Iteration with len value as "" --
 int(0)
 
--- Iteration with len value as "Resource id #5" --
+-- Iteration with len value as "Resource id #%d" --
 
 Warning: strspn() expects parameter 4 to be long, resource given in %s on line %d
 NULL