mirror of
https://github.com/php/php-src.git
synced 2024-11-28 20:34:29 +08:00
Relax test expectation
Since we're dealing with floating point numbers, precision issues may hit us, and actually it's not necessary to check for the exact number anyway, because it is not exact in the first place. Therefore, we relax the test expectations.
This commit is contained in:
parent
c2935499b1
commit
b93e4aa11c
@ -13,6 +13,6 @@ var_dump($fmt->format(gmp_init('823749273428379492374')));
|
||||
$fmt = new NumberFormatter('en_US', NumberFormatter::PATTERN_DECIMAL);
|
||||
var_dump($fmt->format([1], NumberFormatter::TYPE_INT64));
|
||||
?>
|
||||
--EXPECT--
|
||||
string(21) "823749273428379400000"
|
||||
--EXPECTF--
|
||||
string(21) "823749273428379%c%c%c%c%c%c"
|
||||
string(1) "1"
|
||||
|
Loading…
Reference in New Issue
Block a user