From b93e4aa11c409ae34c9088ba976117438fc80b9c Mon Sep 17 00:00:00 2001 From: "Christoph M. Becker" Date: Mon, 3 Feb 2020 13:02:12 +0100 Subject: [PATCH] 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. --- ext/intl/tests/bug79212.phpt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ext/intl/tests/bug79212.phpt b/ext/intl/tests/bug79212.phpt index 0f7897acc4a..3d2083013b8 100644 --- a/ext/intl/tests/bug79212.phpt +++ b/ext/intl/tests/bug79212.phpt @@ -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"