test262
test262 copied to clipboard
Intl.NumberFormat v3: Improve coverage of SetNumberFormatDigitOptions
SetNumberFormatDigitOptions is a complicated part of the spec that we should ensure that implementations get right.
In particular:
- Ensure that all combinations of the presence of
maximumFractionDigits
,maximumSignificantDigits
,roundingPriority: "morePrecision"
,roundingPriority: "lessPrecision"
, andnotation: "compact"
are tested and that they produce the expected resolvedOptions. - Migrate as much of @gibson042's excellent test suite as possible; see https://github.com/tc39/ecma402/pull/575#pullrequestreview-730209467 -- note that this is based on NFv2 (current spec), not NFv3, so it may need to be updated. Alternatively, it may be useful to have the NFv2 and NFv3 tests exist in tandem.
CC @romulocintra @FrankYFTang
- Ensure that all combinations of the presence of
maximumFractionDigits
,maximumSignificantDigits
,roundingPriority: "morePrecision"
,roundingPriority: "lessPrecision"
, andnotation: "compact"
are tested and that they produce the expected resolvedOptions.
Started a Draft here combining some of the values : Todo :
- [x] Test notation
- [x] Add correct results