*.prototype.toString(), a-z make radix loop condition inclusive of radix 36

This commit is contained in:
Rick Waldron 2020-05-13 09:21:50 -04:00
parent d2f7d4285c
commit 1d142259bc
2 changed files with 2 additions and 2 deletions

View File

@ -14,7 +14,7 @@ info: |
features: [BigInt]
---*/
for (let radix = 11; radix < 36; radix++) {
for (let radix = 11; radix <= 36; radix++) {
for (let i = 10n; i < radix; i++) {
assert.sameValue(i.toString(radix), String.fromCharCode(Number(i + 87n)));
}

View File

@ -13,7 +13,7 @@ info: |
generalization of that specified in 6.1.6.1.20.
---*/
for (let radix = 11; radix < 36; radix++) {
for (let radix = 11; radix <= 36; radix++) {
for (let i = 10; i < radix; i++) {
assert.sameValue(i.toString(radix), String.fromCharCode(i + 87));
}