mirror of
https://github.com/tc39/test262.git
synced 2025-07-23 14:04:51 +02:00
*.prototype.toString(), a-z make radix loop condition inclusive of radix 36
This commit is contained in:
parent
d2f7d4285c
commit
1d142259bc
@ -14,7 +14,7 @@ info: |
|
|||||||
features: [BigInt]
|
features: [BigInt]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
for (let radix = 11; radix < 36; radix++) {
|
for (let radix = 11; radix <= 36; radix++) {
|
||||||
for (let i = 10n; i < radix; i++) {
|
for (let i = 10n; i < radix; i++) {
|
||||||
assert.sameValue(i.toString(radix), String.fromCharCode(Number(i + 87n)));
|
assert.sameValue(i.toString(radix), String.fromCharCode(Number(i + 87n)));
|
||||||
}
|
}
|
||||||
|
@ -13,7 +13,7 @@ info: |
|
|||||||
generalization of that specified in 6.1.6.1.20.
|
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++) {
|
for (let i = 10; i < radix; i++) {
|
||||||
assert.sameValue(i.toString(radix), String.fromCharCode(i + 87));
|
assert.sameValue(i.toString(radix), String.fromCharCode(i + 87));
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user