Fix expected maximumFractionDigits for compact notation

[[MaximumFractionDigits]] is set to zero in SetNumberFormatDigitOptions,
step 24.b.
This commit is contained in:
André Bargull 2025-03-14 11:04:18 +01:00 committed by Ms2ger
parent 4a611cbaca
commit d77a127c21

View File

@ -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.");
}
}