mirror of
https://github.com/tc39/test262.git
synced 2025-04-08 19:35:28 +02:00
Fix expected maximumFractionDigits for compact notation
[[MaximumFractionDigits]] is set to zero in SetNumberFormatDigitOptions, step 24.b.
This commit is contained in:
parent
4a611cbaca
commit
d77a127c21
@ -27,7 +27,7 @@ for (const notation of ["compact", "engineering", "scientific"]) {
|
||||
const maximumFractionDigits = resolvedOptions.maximumFractionDigits;
|
||||
|
||||
assert.sameValue(minimumFractionDigits, 0, "Didn't get correct minimumFractionDigits for " + currency + " in " + notation + " notation.");
|
||||
assert.sameValue(maximumFractionDigits, 3, "Didn't get correct maximumFractionDigits for " + currency + " in " + notation + " notation.");
|
||||
assert.sameValue(maximumFractionDigits, notation !== "compact" ? 3 : 0, "Didn't get correct maximumFractionDigits for " + currency + " in " + notation + " notation.");
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user