From 65f2d5e8c2c1b760838fb48801236a3bca13e26e Mon Sep 17 00:00:00 2001 From: Ms2ger Date: Fri, 6 Jul 2018 17:29:17 +0200 Subject: [PATCH] Update the test for negative zero in NumberFormat. The specification was updated in https://github.com/tc39/ecma402/pull/232. --- .../prototype/format/format-negative-numbers.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/test/intl402/NumberFormat/prototype/format/format-negative-numbers.js b/test/intl402/NumberFormat/prototype/format/format-negative-numbers.js index 454667d40f..3fcb6b495d 100644 --- a/test/intl402/NumberFormat/prototype/format/format-negative-numbers.js +++ b/test/intl402/NumberFormat/prototype/format/format-negative-numbers.js @@ -6,6 +6,11 @@ es5id: 11.3.2_FN_1 description: > Tests that Intl.NumberFormat.prototype.format doesn't treat all numbers as negative. +info: | + PartitionNumberPattern ( numberFormat, x ) + 1. If x is not NaN and x < 0 or _x_ is -0, then + a. Let _x_ be -_x_. + b. Let _pattern_ be _numberFormat_.[[NegativePattern]]. author: Roozbeh Pournader ---*/ @@ -13,4 +18,4 @@ var formatter = new Intl.NumberFormat(); assert.notSameValue(formatter.format(1), formatter.format(-1), 'Intl.NumberFormat is formatting 1 and -1 the same way.'); -assert.sameValue(formatter.format(-0), formatter.format(0), 'Intl.NumberFormat is formatting signed zeros differently.'); +assert.notSameValue(formatter.format(0), formatter.format(-0), 'Intl.NumberFormat is formatting 0 and -0 the same way.');