test262/test/intl402/NumberFormat
Yusuke Suzuki a7b9067fe1 Intl.NumberFormat + currency will throw an error if maximumFractionDigits is less than currencyDigits
In 12.1.1 SetNumberFormatDigitOptions step 12.d[1], mnfd (minimum fraction digits) becomes the same to currencyDigits (mxfdDefault in this case).
It is 2 for USD, 4 for CLF. So, if maximumFractionDigits is less than that, we should throw RangeError.

[1]: https://tc39.es/ecma402/#sec-setnfdigitoptions
2020-09-15 10:33:23 -04:00
..
prototype Update list of non-algorithmic numbering systems 2020-06-24 12:11:36 -04:00
supportedLocalesOf
builtin.js
casing-numbering-system-options.js Adding test cases to verify that 'numberingSystem' and 'calendar' options are being mapped to lower case 2020-02-20 12:33:21 -05:00
constructor-compactDisplay-compact.js Unified Intl.NumberFormat: Various tests (#2275) 2019-08-14 12:47:05 -04:00
constructor-compactDisplay-no-compact.js Unified Intl.NumberFormat: Various tests (#2275) 2019-08-14 12:47:05 -04:00
constructor-default-value.js Fix various test issues 2018-10-17 07:45:33 -07:00
constructor-locales-arraylike.js intl: fix mistyped test for array-like objects 2018-10-15 12:54:05 -04:00
constructor-locales-get-tostring.js
constructor-locales-hasproperty.js
constructor-locales-string.js
constructor-locales-toobject.js
constructor-notation.js Unified Intl.NumberFormat: Various tests (#2275) 2019-08-14 12:47:05 -04:00
constructor-numberingSystem-order.js More yaml and whitespace fixes 2019-10-08 14:50:57 -04:00
constructor-options-numberingSystem-invalid.js Copy "invalid options" test from RelativeTimeFormat to NumberFormat/DateTimeFormat 2020-03-30 13:58:04 -04:00
constructor-options-throwing-getters.js Add tests for 'numberingSystem' and 'calendar' options (#2383) 2019-10-08 14:48:46 -04:00
constructor-options-toobject.js
constructor-order.js Updated expected error in NumberFormat constructor per current spec 2020-06-24 12:11:36 -04:00
constructor-signDisplay.js Unified Intl.NumberFormat: Various tests (#2275) 2019-08-14 12:47:05 -04:00
constructor-unit.js Updated expected error in NumberFormat constructor per current spec 2020-06-24 12:11:36 -04:00
constructor-unitDisplay.js More tests for Unified NumberFormat. (#2454) 2020-01-08 16:23:01 -05:00
currency-code-invalid.js
currency-code-well-formed.js
currency-digits.js
currencyDisplay-unit.js change to camelCase to sync with #54 (#2240) 2019-07-16 19:00:29 -04:00
default-minimum-singificant-digits.js
default-options-object-prototype.js
dft-currency-mnfd-range-check-mxfd.js Intl.NumberFormat + currency will throw an error if maximumFractionDigits is less than currencyDigits 2020-09-15 10:33:23 -04:00
fraction-digit-options-read-once.js
ignore-invalid-unicode-ext-values.js Revert "remove "invalid" from invalid date of "cu" and "nu"" 2018-10-17 07:46:46 -07:00
instance-proto-and-extensible.js
legacy-regexp-statics-not-modified.js
length.js
name.js
numbering-system-options.js Remove unnecessary "includes" directives 2019-09-25 13:59:24 -04:00
prop-desc.js
proto-from-ctor-realm.js Add "proto-from-ctor-realm" tests for Intl constructors (#2334) 2019-09-11 17:22:21 -03:00
significant-digits-options-get-sequence.js
style-unit.js change the removed unit 'generic' to 'gigabit' 2019-05-15 22:14:13 -07:00
subclassing.js
taint-Object-prototype.js
test-option-currency.js
test-option-currencyDisplay.js
test-option-localeMatcher.js
test-option-style.js
test-option-useGrouping.js
this-value-ignored.js Fixup Intl.* this-value tests (delete dups, add proper esid) 2020-09-14 13:35:13 -04:00
throws-for-currency-style-without-currency-option.js