Browse Source

fixed tests to match the new float precision of 53, as described in bug 47168

experimental/with_scalar_types
Eyal Teutsch 15 years ago
parent
commit
adecc80459
  1. 4
      ext/standard/tests/strings/printf.phpt
  2. 2
      ext/standard/tests/strings/sprintf_variation52.phpt

4
ext/standard/tests/strings/printf.phpt

@ -670,8 +670,8 @@ Array
*** Output for precision value more than maximum ***
Notice: printf(): Requested precision of 988 digits was truncated to PHP maximum of 40 digits in %s on line %d
12345678900.0000000000000000000000000000000000000000
Notice: printf(): Requested precision of 988 digits was truncated to PHP maximum of 53 digits in %s on line %d
12345678900.00000000000000000000000000000000000000000000000000000
*** Output for invalid width(-15) specifier ***
15s

2
ext/standard/tests/strings/sprintf_variation52.phpt

@ -48,7 +48,7 @@ string(1) "%"
-- Testing for precision value more than maximum --
Notice: sprintf(): Requested precision of 988 digits was truncated to PHP maximum of %d digits in %s on line %d
string(52) "12345678900.0000000000000000000000000000000000000000"
string(65) "12345678900.00000000000000000000000000000000000000000000000000000"
-- Testing for invalid width(-15) specifier --
string(3) "15s"

Loading…
Cancel
Save