summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/built-ins/Number/prototype/toString/numeric-literal-tostring-radix-6.js
blob: 31bc954fdcd6179d17f7568192a1c7798644b028 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// Copyright 2020 Rick Waldron.  All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.

/*---
esid: sec-number.prototype.tostring
description: >
  Calling toString(radix) (6)
info: |
  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.
---*/

assert.sameValue(0..toString(6), "0");
assert.sameValue(1..toString(6), "1");
assert.sameValue(NaN.toString(6), "NaN");
assert.sameValue(Infinity.toString(6), "Infinity");

reportCompare(0, 0);