Fix bug #80018: Tolerate var_dump() printing floats in exponential notation in tests

This commit is contained in:
Jamie Liu 2020-08-25 13:39:43 -07:00 committed by Nikita Popov
parent 5f4b169be8
commit c8093fe94a
11 changed files with 49 additions and 49 deletions

View file

@ -50,7 +50,7 @@ float(1)
float(0)
float(1)
float(0)
float(%d)
float(%f)
Notice: Object of class test could not be converted to float in %s on line %d
float(1)

View file

@ -50,7 +50,7 @@ float(1)
float(0)
float(1)
float(0)
float(%d)
float(%f)
Notice: Object of class test could not be converted to float in %s on line %d
float(1)

View file

@ -30,8 +30,8 @@ bool(false)
Warning: disk_total_space(): No such file or directory in %s on line %d
bool(false)
float(%d)
float(%d)
float(%f)
float(%f)
Warning: disk_free_space(): No such file or directory in %s on line %d
bool(false)

View file

@ -50,18 +50,18 @@ rmdir($file_path."/disk_free_space");
?>
--EXPECTF--
*** Testing with existing directory ***
float(%d)
float(%d)
float(%f)
float(%f)
*** Testing with newly created directory ***
Free Space before writing to a file
float(%d)
float(%f)
Free Space after writing to a file
float(%d)
float(%f)
Free Space Value Is Correct
*** Testing with Binary Input ***
float(%d)
float(%f)
--- Done ---

View file

@ -35,7 +35,7 @@ bool(false)
Warning: diskfreespace(): No such file or directory in %s on line %d
bool(false)
float(%d)
float(%d)
float(%f)
float(%f)
-- Done --

View file

@ -63,44 +63,44 @@ rmdir($file_path."/disk_free_space_variation");
?>
--EXPECTF--
*** Testing with a directory ***
float(%d)
float(%d)
float(%f)
float(%f)
Testing for the return type ***
bool(true)
*** Testing with different directory combinations ***
-- Iteration 1 --
float(%d)
float(%d)
float(%f)
float(%f)
-- Iteration 2 --
float(%d)
float(%d)
float(%f)
float(%f)
-- Iteration 3 --
float(%d)
float(%d)
float(%f)
float(%f)
-- Iteration 4 --
float(%d)
float(%d)
float(%f)
float(%f)
-- Iteration 5 --
float(%d)
float(%d)
float(%f)
float(%f)
-- Iteration 6 --
float(%d)
float(%d)
float(%f)
float(%f)
-- Iteration 7 --
float(%d)
float(%d)
float(%f)
float(%f)
-- Iteration 8 --
float(%d)
float(%d)
float(%f)
float(%f)
-- Iteration 9 --
disk_free_space(): Argument #1 ($directory) must be a valid path, string given

View file

@ -32,11 +32,11 @@ rmdir($file_path."/disk_total_space");
?>
--EXPECTF--
*** Testing with normal directory ***
float(%d)
float(%f)
*** Testing with newly created directory ***
float(%d)
float(%f)
Total Space after writing to a file
float(%d)
float(%f)
-- Done --

View file

@ -31,6 +31,6 @@ unlink($file_path."/disk_total_space.tmp");
Warning: disk_total_space(): No such file or directory in %s on line %d
bool(false)
float(%d)
float(%f)
--- Done ---

View file

@ -64,35 +64,35 @@ rmdir($file_path."/disk_total_space");
?>
--EXPECTF--
*** Testing with a directory ***
float(%d)
float(%f)
Testing for the return type ***
bool(true)
*** Testing with different directory combinations ***
-- Iteration 1 --
float(%d)
float(%f)
-- Iteration 2 --
float(%d)
float(%f)
-- Iteration 3 --
float(%d)
float(%f)
-- Iteration 4 --
float(%d)
float(%f)
-- Iteration 5 --
float(%d)
float(%f)
-- Iteration 6 --
float(%d)
float(%f)
-- Iteration 7 --
float(%d)
float(%f)
-- Iteration 8 --
float(%d)
float(%f)
-- Iteration 9 --
disk_total_space(): Argument #1 ($directory) must be a valid path, string given

View file

@ -348,11 +348,11 @@ float(0)
string(6) "double"
-- Iteration 12 --
bool(true)
float(%d)
float(%f)
string(6) "double"
-- Iteration 13 --
bool(true)
float(%d)
float(%f)
string(6) "double"
-- Iteration 14 --
8: Object of class point could not be converted to float
@ -407,11 +407,11 @@ float(0)
string(6) "double"
-- Iteration 12 --
bool(true)
float(%d)
float(%f)
string(6) "double"
-- Iteration 13 --
bool(true)
float(%d)
float(%f)
string(6) "double"
-- Iteration 14 --
8: Object of class point could not be converted to float

View file

@ -132,12 +132,12 @@ float(0)
bool(true)
float(0)
bool(true)
float(%d)
float(%f)
bool(true)
float(%d)
float(%f)
string(56) "Object of class stdClass could not be converted to float"
bool(true)
float(%d)
float(%f)
bool(true)
bool(true)
bool(true)