Skip to content

Commit e871ad7

Browse files
committed
Fix expected maximumFractionDigits for compact notation
[[MaximumFractionDigits]] is set to zero in SetNumberFormatDigitOptions, step 24.b.
1 parent 48bb262 commit e871ad7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/intl402/NumberFormat/currency-digits-nonstandard-notation.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ for (const notation of ["compact", "engineering", "scientific"]) {
2727
const maximumFractionDigits = resolvedOptions.maximumFractionDigits;
2828

2929
assert.sameValue(minimumFractionDigits, 0, "Didn't get correct minimumFractionDigits for " + currency + " in " + notation + " notation.");
30-
assert.sameValue(maximumFractionDigits, 3, "Didn't get correct maximumFractionDigits for " + currency + " in " + notation + " notation.");
30+
assert.sameValue(maximumFractionDigits, notation !== "compact" ? 3 : 0, "Didn't get correct maximumFractionDigits for " + currency + " in " + notation + " notation.");
3131
}
3232
}
3333

0 commit comments

Comments
 (0)