fix en-IN expectation

This commit is contained in:
Frank Yung-Fong Tang 2021-11-30 16:16:39 -08:00 committed by Rick Waldron
parent 54ef0b1bf4
commit ef697bbc6d
1 changed files with 4 additions and 4 deletions

View File

@ -23,11 +23,11 @@ nf = new Intl.NumberFormat('en-IN', {useGrouping: 'min2'});
assert.sameValue(nf.format(100), '100', '"min2"'); assert.sameValue(nf.format(100), '100', '"min2"');
assert.sameValue(nf.format(1000), '1000', '"min2"'); assert.sameValue(nf.format(1000), '1000', '"min2"');
assert.sameValue(nf.format(10000), '10,000', '"min2"'); assert.sameValue(nf.format(10000), '10,000', '"min2"');
assert.sameValue(nf.format(100000), '100,000', '"min2"'); assert.sameValue(nf.format(100000), '1,00,000', '"min2"');
nf = new Intl.NumberFormat('en-IN', {notation: 'compact'}); nf = new Intl.NumberFormat('en-IN', {notation: 'compact'});
assert.sameValue(nf.format(100), '100', 'notation: "compact"'); assert.sameValue(nf.format(100), '100', 'notation: "compact"');
assert.sameValue(nf.format(1000), '1000', 'notation: "compact"'); assert.sameValue(nf.format(1000), '1T', 'notation: "compact"');
assert.sameValue(nf.format(10000), '10,000', 'notation: "compact"'); assert.sameValue(nf.format(10000), '10T', 'notation: "compact"');
assert.sameValue(nf.format(100000), '100,000', 'notation: "compact"'); assert.sameValue(nf.format(100000), '1L', 'notation: "compact"');