1 // Copyright 2009 the Sputnik authors. All rights reserved.
2 // This code is governed by the BSD license found in the LICENSE file.
6 toString: If radix is an integer from 2 to 36, but not 10,
7 the result is a string, the choice of which is implementation-dependent
9 description: radix is 32
11 assert.sameValue(Number.prototype.toString(32), "0", 'Number.prototype.toString(32) must return "0"');
12 assert.sameValue((new Number()).toString(32), "0", '(new Number()).toString(32) must return "0"');
13 assert.sameValue((new Number(0)).toString(32), "0", '(new Number(0)).toString(32) must return "0"');
14 assert.sameValue((new Number(-1)).toString(32), "-1", '(new Number(-1)).toString(32) must return "-1"');
15 assert.sameValue((new Number(1)).toString(32), "1", '(new Number(1)).toString(32) must return "1"');
18 (new Number(Number.NaN)).toString(32),
20 '(new Number(Number.NaN)).toString(32) must return "NaN"'
24 (new Number(Number.POSITIVE_INFINITY)).toString(32),
26 '(new Number(Number.POSITIVE_INFINITY)).toString(32) must return "Infinity"'
30 (new Number(Number.NEGATIVE_INFINITY)).toString(32),
32 '(new Number(Number.NEGATIVE_INFINITY)).toString(32) must return "-Infinity"'