Bug 1897246 - Implement "Add to Home screen" menu functionality. r=android-reviewers,gl
[gecko.git] / js / src / tests / test262 / built-ins / Number / prototype / toString / numeric-literal-tostring-radix-23.js
blob26ebd10a28de8b6deced84f82b618e6670e85fa0
1 // Copyright 2020 Rick Waldron.  All rights reserved.
2 // This code is governed by the BSD license found in the LICENSE file.
4 /*---
5 esid: sec-number.prototype.tostring
6 description: >
7   Calling toString(radix) (23)
8 info: |
9   Return the String representation of this Number value using the radix specified by radixNumber. Letters a-z are used for digits with values 10 through 35. The precise algorithm is implementation-defined, however the algorithm should be a generalization of that specified in sec-numeric-types-number-tostring.
10 ---*/
12 assert.sameValue(0..toString(23), "0");
13 assert.sameValue(1..toString(23), "1");
14 assert.sameValue(NaN.toString(23), "NaN");
15 assert.sameValue(Infinity.toString(23), "Infinity");
17 reportCompare(0, 0);