diff options
Diffstat (limited to 'js/src/tests/test262/intl402/NumberFormat/prototype/format/signDisplay-negative-currency-ko-KR.js')
-rw-r--r-- | js/src/tests/test262/intl402/NumberFormat/prototype/format/signDisplay-negative-currency-ko-KR.js | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/js/src/tests/test262/intl402/NumberFormat/prototype/format/signDisplay-negative-currency-ko-KR.js b/js/src/tests/test262/intl402/NumberFormat/prototype/format/signDisplay-negative-currency-ko-KR.js new file mode 100644 index 0000000000..f5776b42a7 --- /dev/null +++ b/js/src/tests/test262/intl402/NumberFormat/prototype/format/signDisplay-negative-currency-ko-KR.js @@ -0,0 +1,19 @@ +// Copyright 2021 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: sec-intl.numberformat.prototype.format +description: Checks handling of the signDisplay option to the NumberFormat constructor. +locale: [ko-KR] +features: [Intl.NumberFormat-v3] +---*/ + +const nf = new Intl.NumberFormat("ko-KR", { style: "currency", currency: "USD", currencySign: "accounting", signDisplay: "negative" }); +assert.sameValue(nf.format(-987), "(US$987.00)"); +assert.sameValue(nf.format(-0.0001), "US$0.00"); +assert.sameValue(nf.format(-0), "US$0.00"); +assert.sameValue(nf.format(0), "US$0.00"); +assert.sameValue(nf.format(0.0001), "US$0.00"); +assert.sameValue(nf.format(987), "US$987.00"); + +reportCompare(0, 0); |