Skip to content
Snippets Groups Projects
Unverified Commit 23925f86 authored by Rick Waldron's avatar Rick Waldron Committed by GitHub
Browse files

Merge pull request #1628 from Ms2ger/NumberFormat-negzero

Update the test for negative zero in NumberFormat.
parents 2e007144 65f2d5e8
No related branches found
No related tags found
No related merge requests found
......@@ -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.');
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment