mirror of
https://github.com/php/php-src.git
synced 2024-09-22 02:17:32 +00:00
fix test : better float values
This commit is contained in:
parent
6079ffd434
commit
5d8097975c
@ -9,7 +9,7 @@ Test join() function : usage variations - unexpected values for 'glue' argument
|
||||
*/
|
||||
|
||||
/*
|
||||
* testing join() by passing different unexpected values for glue argument
|
||||
* testing join() by passing different unexpected value for glue argument
|
||||
*/
|
||||
|
||||
echo "*** Testing join() : usage variations ***\n";
|
||||
@ -44,8 +44,8 @@ $values = array (
|
||||
// float values
|
||||
10.5,
|
||||
-10.5,
|
||||
10.5e10,
|
||||
10.6E-10,
|
||||
10.1234567e10,
|
||||
10.7654321E-10,
|
||||
.5,
|
||||
|
||||
// array values
|
||||
@ -115,9 +115,9 @@ string(20) "element110.5element2"
|
||||
-- Iteration 6 --
|
||||
string(21) "element1-10.5element2"
|
||||
-- Iteration 7 --
|
||||
string(28) "element1105000000000element2"
|
||||
string(28) "element1101234567000element2"
|
||||
-- Iteration 8 --
|
||||
string(23) "element11.06E-9element2"
|
||||
string(29) "element11.07654321E-9element2"
|
||||
-- Iteration 9 --
|
||||
string(19) "element10.5element2"
|
||||
-- Iteration 10 --
|
||||
@ -182,9 +182,9 @@ unicode(20) "element110.5element2"
|
||||
-- Iteration 6 --
|
||||
unicode(21) "element1-10.5element2"
|
||||
-- Iteration 7 --
|
||||
unicode(28) "element1105000000000element2"
|
||||
unicode(28) "element1101234567000element2"
|
||||
-- Iteration 8 --
|
||||
unicode(23) "element11.06E-9element2"
|
||||
unicode(29) "element11.07654321E-9element2"
|
||||
-- Iteration 9 --
|
||||
unicode(19) "element10.5element2"
|
||||
-- Iteration 10 --
|
||||
@ -226,7 +226,7 @@ unicode(16) "element1element2"
|
||||
-- Iteration 23 --
|
||||
unicode(16) "element1element2"
|
||||
-- Iteration 24 --
|
||||
unicode(%d) "element1Resource id #%delement2"
|
||||
unicode(30) "element1Resource id #%delement2"
|
||||
-- Iteration 25 --
|
||||
unicode(16) "element1element2"
|
||||
-- Iteration 26 --
|
||||
|
Loading…
Reference in New Issue
Block a user