mirror of https://github.com/tc39/test262.git
Correct set up
This commit is contained in:
parent
6fecbe5257
commit
b9cac998df
|
@ -9,7 +9,7 @@ features: [Intl.NumberFormat-v3]
|
|||
locale: [en-US]
|
||||
---*/
|
||||
|
||||
var nf = new Intl.NumberFormat('en-US');
|
||||
var nf = new Intl.NumberFormat('en-US', {maximumFractionDigits: 20});
|
||||
|
||||
// The value 100,000 should only be interpreted as infinity if the input is the
|
||||
// string "Infinity".
|
||||
|
@ -18,7 +18,7 @@ assert.sameValue(nf.format('100000'), '100,000');
|
|||
// input is the string "-Infinity".
|
||||
assert.sameValue(nf.format('-100000'), '-100,000');
|
||||
|
||||
assert.sameValue(nf.format('1.0000000000000001'), '1');
|
||||
assert.sameValue(nf.format('-1.0000000000000001'), '-1');
|
||||
assert.sameValue(nf.format('1.0000000000000001'), '1.0000000000000001');
|
||||
assert.sameValue(nf.format('-1.0000000000000001'), '-1.0000000000000001');
|
||||
assert.sameValue(nf.format('987654321987654321'), '987,654,321,987,654,321');
|
||||
assert.sameValue(nf.format('-987654321987654321'), '-987,654,321,987,654,321');
|
||||
|
|
Loading…
Reference in New Issue