1# Copyright 2013 the V8 project authors. All rights reserved.
2# Copyright (C) 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved.
3#
4# Redistribution and use in source and binary forms, with or without
5# modification, are permitted provided that the following conditions
6# are met:
7# 1.  Redistributions of source code must retain the above copyright
8#     notice, this list of conditions and the following disclaimer.
9# 2.  Redistributions in binary form must reproduce the above copyright
10#     notice, this list of conditions and the following disclaimer in the
11#     documentation and/or other materials provided with the distribution.
12#
13# THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS'' AND ANY
14# EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
15# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
16# DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS BE LIABLE FOR ANY
17# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
18# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
19# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
20# ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
21# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
22# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
23
24Test the conversion performed by the function Number.prototype.toString.
25
26On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
27
28
29PASS Number(0).toString() is "0"
30PASS Number.prototype.toString.call(0) is "0"
31PASS Number.prototype.toString.call(new Number(0)) is "0"
32PASS Number("0").toString() is "0"
33PASS Number(0).toString(10) is "0"
34PASS Number(0).toString(2) is "0"
35PASS Number.prototype.toString.call(0, 2) is "0"
36PASS Number.prototype.toString.call(new Number(0), 2) is "0"
37PASS Number(0).toString(36) is "0"
38PASS Number.prototype.toString.call(0, 36) is "0"
39PASS Number.prototype.toString.call(new Number(0), 36) is "0"
40PASS Number(-1).toString() is "-1"
41PASS Number.prototype.toString.call(-1) is "-1"
42PASS Number.prototype.toString.call(new Number(-1)) is "-1"
43PASS Number("-1").toString() is "-1"
44PASS Number(-1).toString(10) is "-1"
45PASS Number(-1).toString(2) is "-1"
46PASS Number.prototype.toString.call(-1, 2) is "-1"
47PASS Number.prototype.toString.call(new Number(-1), 2) is "-1"
48PASS Number(-1).toString(36) is "-1"
49PASS Number.prototype.toString.call(-1, 36) is "-1"
50PASS Number.prototype.toString.call(new Number(-1), 36) is "-1"
51PASS Number(1).toString() is "1"
52PASS Number.prototype.toString.call(1) is "1"
53PASS Number.prototype.toString.call(new Number(1)) is "1"
54PASS Number("1").toString() is "1"
55PASS Number(1).toString(10) is "1"
56PASS Number(1).toString(2) is "1"
57PASS Number.prototype.toString.call(1, 2) is "1"
58PASS Number.prototype.toString.call(new Number(1), 2) is "1"
59PASS Number(1).toString(36) is "1"
60PASS Number.prototype.toString.call(1, 36) is "1"
61PASS Number.prototype.toString.call(new Number(1), 36) is "1"
62PASS Number(1984).toString() is "1984"
63PASS Number.prototype.toString.call(1984) is "1984"
64PASS Number.prototype.toString.call(new Number(1984)) is "1984"
65PASS Number("1984").toString() is "1984"
66PASS Number(1984).toString(10) is "1984"
67PASS Number(1984).toString(2) is "11111000000"
68PASS Number.prototype.toString.call(1984, 2) is "11111000000"
69PASS Number.prototype.toString.call(new Number(1984), 2) is "11111000000"
70PASS Number(1984).toString(36) is "1j4"
71PASS Number.prototype.toString.call(1984, 36) is "1j4"
72PASS Number.prototype.toString.call(new Number(1984), 36) is "1j4"
73PASS Number(-1984).toString() is "-1984"
74PASS Number.prototype.toString.call(-1984) is "-1984"
75PASS Number.prototype.toString.call(new Number(-1984)) is "-1984"
76PASS Number("-1984").toString() is "-1984"
77PASS Number(-1984).toString(10) is "-1984"
78PASS Number(-1984).toString(2) is "-11111000000"
79PASS Number.prototype.toString.call(-1984, 2) is "-11111000000"
80PASS Number.prototype.toString.call(new Number(-1984), 2) is "-11111000000"
81PASS Number(-1984).toString(36) is "-1j4"
82PASS Number.prototype.toString.call(-1984, 36) is "-1j4"
83PASS Number.prototype.toString.call(new Number(-1984), 36) is "-1j4"
84PASS Number(2147483647).toString() is "2147483647"
85PASS Number.prototype.toString.call(2147483647) is "2147483647"
86PASS Number.prototype.toString.call(new Number(2147483647)) is "2147483647"
87PASS Number("2147483647").toString() is "2147483647"
88PASS Number(2147483647).toString(10) is "2147483647"
89PASS Number(2147483647).toString(2) is "1111111111111111111111111111111"
90PASS Number.prototype.toString.call(2147483647, 2) is "1111111111111111111111111111111"
91PASS Number.prototype.toString.call(new Number(2147483647), 2) is "1111111111111111111111111111111"
92PASS Number(2147483647).toString(36) is "zik0zj"
93PASS Number.prototype.toString.call(2147483647, 36) is "zik0zj"
94PASS Number.prototype.toString.call(new Number(2147483647), 36) is "zik0zj"
95PASS Number(-2147483648).toString() is "-2147483648"
96PASS Number.prototype.toString.call(-2147483648) is "-2147483648"
97PASS Number.prototype.toString.call(new Number(-2147483648)) is "-2147483648"
98PASS Number("-2147483648").toString() is "-2147483648"
99PASS Number(-2147483648).toString(10) is "-2147483648"
100PASS Number(-2147483648).toString(2) is "-10000000000000000000000000000000"
101PASS Number.prototype.toString.call(-2147483648, 2) is "-10000000000000000000000000000000"
102PASS Number.prototype.toString.call(new Number(-2147483648), 2) is "-10000000000000000000000000000000"
103PASS Number(-2147483648).toString(36) is "-zik0zk"
104PASS Number.prototype.toString.call(-2147483648, 36) is "-zik0zk"
105PASS Number.prototype.toString.call(new Number(-2147483648), 36) is "-zik0zk"
106PASS Number(9007199254740992).toString() is "9007199254740992"
107PASS Number.prototype.toString.call(9007199254740992) is "9007199254740992"
108PASS Number.prototype.toString.call(new Number(9007199254740992)) is "9007199254740992"
109PASS Number("9007199254740992").toString() is "9007199254740992"
110PASS Number(9007199254740992).toString(10) is "9007199254740992"
111PASS Number(9007199254740992).toString(2) is "100000000000000000000000000000000000000000000000000000"
112PASS Number.prototype.toString.call(9007199254740992, 2) is "100000000000000000000000000000000000000000000000000000"
113PASS Number.prototype.toString.call(new Number(9007199254740992), 2) is "100000000000000000000000000000000000000000000000000000"
114PASS Number(9007199254740992).toString(36) is "2gosa7pa2gw"
115PASS Number.prototype.toString.call(9007199254740992, 36) is "2gosa7pa2gw"
116PASS Number.prototype.toString.call(new Number(9007199254740992), 36) is "2gosa7pa2gw"
117PASS Number(-9007199254740992).toString() is "-9007199254740992"
118PASS Number.prototype.toString.call(-9007199254740992) is "-9007199254740992"
119PASS Number.prototype.toString.call(new Number(-9007199254740992)) is "-9007199254740992"
120PASS Number("-9007199254740992").toString() is "-9007199254740992"
121PASS Number(-9007199254740992).toString(10) is "-9007199254740992"
122PASS Number(-9007199254740992).toString(2) is "-100000000000000000000000000000000000000000000000000000"
123PASS Number.prototype.toString.call(-9007199254740992, 2) is "-100000000000000000000000000000000000000000000000000000"
124PASS Number.prototype.toString.call(new Number(-9007199254740992), 2) is "-100000000000000000000000000000000000000000000000000000"
125PASS Number(-9007199254740992).toString(36) is "-2gosa7pa2gw"
126PASS Number.prototype.toString.call(-9007199254740992, 36) is "-2gosa7pa2gw"
127PASS Number.prototype.toString.call(new Number(-9007199254740992), 36) is "-2gosa7pa2gw"
128PASS Number(0).toString() is "0"
129PASS Number.prototype.toString.call(0) is "0"
130PASS Number.prototype.toString.call(new Number(0)) is "0"
131PASS Number("0").toString() is "0"
132PASS Number(0).toString(10) is "0"
133PASS Number(0).toString(2) is "0"
134PASS Number.prototype.toString.call(0, 2) is "0"
135PASS Number.prototype.toString.call(new Number(0), 2) is "0"
136PASS Number(0).toString(36) is "0"
137PASS Number.prototype.toString.call(0, 36) is "0"
138PASS Number.prototype.toString.call(new Number(0), 36) is "0"
139PASS Number(-1).toString() is "-1"
140PASS Number.prototype.toString.call(-1) is "-1"
141PASS Number.prototype.toString.call(new Number(-1)) is "-1"
142PASS Number("-1").toString() is "-1"
143PASS Number(-1).toString(10) is "-1"
144PASS Number(-1).toString(2) is "-1"
145PASS Number.prototype.toString.call(-1, 2) is "-1"
146PASS Number.prototype.toString.call(new Number(-1), 2) is "-1"
147PASS Number(-1).toString(36) is "-1"
148PASS Number.prototype.toString.call(-1, 36) is "-1"
149PASS Number.prototype.toString.call(new Number(-1), 36) is "-1"
150PASS Number(1).toString() is "1"
151PASS Number.prototype.toString.call(1) is "1"
152PASS Number.prototype.toString.call(new Number(1)) is "1"
153PASS Number("1").toString() is "1"
154PASS Number(1).toString(10) is "1"
155PASS Number(1).toString(2) is "1"
156PASS Number.prototype.toString.call(1, 2) is "1"
157PASS Number.prototype.toString.call(new Number(1), 2) is "1"
158PASS Number(1).toString(36) is "1"
159PASS Number.prototype.toString.call(1, 36) is "1"
160PASS Number.prototype.toString.call(new Number(1), 36) is "1"
161PASS Number(1984).toString() is "1984"
162PASS Number.prototype.toString.call(1984) is "1984"
163PASS Number.prototype.toString.call(new Number(1984)) is "1984"
164PASS Number("1984").toString() is "1984"
165PASS Number(1984).toString(10) is "1984"
166PASS Number(1984).toString(2) is "11111000000"
167PASS Number.prototype.toString.call(1984, 2) is "11111000000"
168PASS Number.prototype.toString.call(new Number(1984), 2) is "11111000000"
169PASS Number(1984).toString(36) is "1j4"
170PASS Number.prototype.toString.call(1984, 36) is "1j4"
171PASS Number.prototype.toString.call(new Number(1984), 36) is "1j4"
172PASS Number(-1984).toString() is "-1984"
173PASS Number.prototype.toString.call(-1984) is "-1984"
174PASS Number.prototype.toString.call(new Number(-1984)) is "-1984"
175PASS Number("-1984").toString() is "-1984"
176PASS Number(-1984).toString(10) is "-1984"
177PASS Number(-1984).toString(2) is "-11111000000"
178PASS Number.prototype.toString.call(-1984, 2) is "-11111000000"
179PASS Number.prototype.toString.call(new Number(-1984), 2) is "-11111000000"
180PASS Number(-1984).toString(36) is "-1j4"
181PASS Number.prototype.toString.call(-1984, 36) is "-1j4"
182PASS Number.prototype.toString.call(new Number(-1984), 36) is "-1j4"
183PASS Number(2147483647).toString() is "2147483647"
184PASS Number.prototype.toString.call(2147483647) is "2147483647"
185PASS Number.prototype.toString.call(new Number(2147483647)) is "2147483647"
186PASS Number("2147483647").toString() is "2147483647"
187PASS Number(2147483647).toString(10) is "2147483647"
188PASS Number(2147483647).toString(2) is "1111111111111111111111111111111"
189PASS Number.prototype.toString.call(2147483647, 2) is "1111111111111111111111111111111"
190PASS Number.prototype.toString.call(new Number(2147483647), 2) is "1111111111111111111111111111111"
191PASS Number(2147483647).toString(36) is "zik0zj"
192PASS Number.prototype.toString.call(2147483647, 36) is "zik0zj"
193PASS Number.prototype.toString.call(new Number(2147483647), 36) is "zik0zj"
194PASS Number(-2147483648).toString() is "-2147483648"
195PASS Number.prototype.toString.call(-2147483648) is "-2147483648"
196PASS Number.prototype.toString.call(new Number(-2147483648)) is "-2147483648"
197PASS Number("-2147483648").toString() is "-2147483648"
198PASS Number(-2147483648).toString(10) is "-2147483648"
199PASS Number(-2147483648).toString(2) is "-10000000000000000000000000000000"
200PASS Number.prototype.toString.call(-2147483648, 2) is "-10000000000000000000000000000000"
201PASS Number.prototype.toString.call(new Number(-2147483648), 2) is "-10000000000000000000000000000000"
202PASS Number(-2147483648).toString(36) is "-zik0zk"
203PASS Number.prototype.toString.call(-2147483648, 36) is "-zik0zk"
204PASS Number.prototype.toString.call(new Number(-2147483648), 36) is "-zik0zk"
205PASS Number(9007199254740992).toString() is "9007199254740992"
206PASS Number.prototype.toString.call(9007199254740992) is "9007199254740992"
207PASS Number.prototype.toString.call(new Number(9007199254740992)) is "9007199254740992"
208PASS Number("9007199254740992").toString() is "9007199254740992"
209PASS Number(9007199254740992).toString(10) is "9007199254740992"
210PASS Number(9007199254740992).toString(2) is "100000000000000000000000000000000000000000000000000000"
211PASS Number.prototype.toString.call(9007199254740992, 2) is "100000000000000000000000000000000000000000000000000000"
212PASS Number.prototype.toString.call(new Number(9007199254740992), 2) is "100000000000000000000000000000000000000000000000000000"
213PASS Number(9007199254740992).toString(36) is "2gosa7pa2gw"
214PASS Number.prototype.toString.call(9007199254740992, 36) is "2gosa7pa2gw"
215PASS Number.prototype.toString.call(new Number(9007199254740992), 36) is "2gosa7pa2gw"
216PASS Number(-9007199254740992).toString() is "-9007199254740992"
217PASS Number.prototype.toString.call(-9007199254740992) is "-9007199254740992"
218PASS Number.prototype.toString.call(new Number(-9007199254740992)) is "-9007199254740992"
219PASS Number("-9007199254740992").toString() is "-9007199254740992"
220PASS Number(-9007199254740992).toString(10) is "-9007199254740992"
221PASS Number(-9007199254740992).toString(2) is "-100000000000000000000000000000000000000000000000000000"
222PASS Number.prototype.toString.call(-9007199254740992, 2) is "-100000000000000000000000000000000000000000000000000000"
223PASS Number.prototype.toString.call(new Number(-9007199254740992), 2) is "-100000000000000000000000000000000000000000000000000000"
224PASS Number(-9007199254740992).toString(36) is "-2gosa7pa2gw"
225PASS Number.prototype.toString.call(-9007199254740992, 36) is "-2gosa7pa2gw"
226PASS Number.prototype.toString.call(new Number(-9007199254740992), 36) is "-2gosa7pa2gw"
227PASS Number(0.1).toString() is "0.1"
228PASS Number.prototype.toString.call(0.1) is "0.1"
229PASS Number.prototype.toString.call(new Number(0.1)) is "0.1"
230PASS Number("0.1").toString() is "0.1"
231PASS Number(0.1).toString(10) is "0.1"
232PASS Number(0.1).toString(2) is "0.0001100110011001100110011001100110011001100110011001101"
233PASS Number.prototype.toString.call(0.1, 2) is "0.0001100110011001100110011001100110011001100110011001101"
234PASS Number.prototype.toString.call(new Number(0.1), 2) is "0.0001100110011001100110011001100110011001100110011001101"
235FAIL Number(0.1).toString(36) should be 0.3lllllllllm. Was 0.3llllllllllqsn8td1p464unmi.
236FAIL Number.prototype.toString.call(0.1, 36) should be 0.3lllllllllm. Was 0.3llllllllllqsn8td1p464unmi.
237FAIL Number.prototype.toString.call(new Number(0.1), 36) should be 0.3lllllllllm. Was 0.3llllllllllqsn8td1p464unmi.
238PASS Number(-1.1).toString() is "-1.1"
239PASS Number.prototype.toString.call(-1.1) is "-1.1"
240PASS Number.prototype.toString.call(new Number(-1.1)) is "-1.1"
241PASS Number("-1.1").toString() is "-1.1"
242PASS Number(-1.1).toString(10) is "-1.1"
243PASS Number(-1.1).toString(2) is "-1.000110011001100110011001100110011001100110011001101"
244PASS Number.prototype.toString.call(-1.1, 2) is "-1.000110011001100110011001100110011001100110011001101"
245PASS Number.prototype.toString.call(new Number(-1.1), 2) is "-1.000110011001100110011001100110011001100110011001101"
246FAIL Number(-1.1).toString(36) should be -1.3llllllllm. Was -1.3lllllllllxagau2ctidswz5mi.
247FAIL Number.prototype.toString.call(-1.1, 36) should be -1.3llllllllm. Was -1.3lllllllllxagau2ctidswz5mi.
248FAIL Number.prototype.toString.call(new Number(-1.1), 36) should be -1.3llllllllm. Was -1.3lllllllllxagau2ctidswz5mi.
249PASS Number(1.1).toString() is "1.1"
250PASS Number.prototype.toString.call(1.1) is "1.1"
251PASS Number.prototype.toString.call(new Number(1.1)) is "1.1"
252PASS Number("1.1").toString() is "1.1"
253PASS Number(1.1).toString(10) is "1.1"
254PASS Number(1.1).toString(2) is "1.000110011001100110011001100110011001100110011001101"
255PASS Number.prototype.toString.call(1.1, 2) is "1.000110011001100110011001100110011001100110011001101"
256PASS Number.prototype.toString.call(new Number(1.1), 2) is "1.000110011001100110011001100110011001100110011001101"
257FAIL Number(1.1).toString(36) should be 1.3llllllllm. Was 1.3lllllllllxagau2ctidswz5mi.
258FAIL Number.prototype.toString.call(1.1, 36) should be 1.3llllllllm. Was 1.3lllllllllxagau2ctidswz5mi.
259FAIL Number.prototype.toString.call(new Number(1.1), 36) should be 1.3llllllllm. Was 1.3lllllllllxagau2ctidswz5mi.
260PASS Number(1984.1).toString() is "1984.1"
261PASS Number.prototype.toString.call(1984.1) is "1984.1"
262PASS Number.prototype.toString.call(new Number(1984.1)) is "1984.1"
263PASS Number("1984.1").toString() is "1984.1"
264PASS Number(1984.1).toString(10) is "1984.1"
265PASS Number(1984.1).toString(2) is "11111000000.00011001100110011001100110011001100110011"
266PASS Number.prototype.toString.call(1984.1, 2) is "11111000000.00011001100110011001100110011001100110011"
267PASS Number.prototype.toString.call(new Number(1984.1), 2) is "11111000000.00011001100110011001100110011001100110011"
268FAIL Number(1984.1).toString(36) should be 1j4.3lllllllc. Was 1j4.3lllllllcd2obsszcl3di.
269FAIL Number.prototype.toString.call(1984.1, 36) should be 1j4.3lllllllc. Was 1j4.3lllllllcd2obsszcl3di.
270FAIL Number.prototype.toString.call(new Number(1984.1), 36) should be 1j4.3lllllllc. Was 1j4.3lllllllcd2obsszcl3di.
271PASS Number(-1984.1).toString() is "-1984.1"
272PASS Number.prototype.toString.call(-1984.1) is "-1984.1"
273PASS Number.prototype.toString.call(new Number(-1984.1)) is "-1984.1"
274PASS Number("-1984.1").toString() is "-1984.1"
275PASS Number(-1984.1).toString(10) is "-1984.1"
276PASS Number(-1984.1).toString(2) is "-11111000000.00011001100110011001100110011001100110011"
277PASS Number.prototype.toString.call(-1984.1, 2) is "-11111000000.00011001100110011001100110011001100110011"
278PASS Number.prototype.toString.call(new Number(-1984.1), 2) is "-11111000000.00011001100110011001100110011001100110011"
279FAIL Number(-1984.1).toString(36) should be -1j4.3lllllllc. Was -1j4.3lllllllcd2obsszcl3di.
280FAIL Number.prototype.toString.call(-1984.1, 36) should be -1j4.3lllllllc. Was -1j4.3lllllllcd2obsszcl3di.
281FAIL Number.prototype.toString.call(new Number(-1984.1), 36) should be -1j4.3lllllllc. Was -1j4.3lllllllcd2obsszcl3di.
282PASS Number(2147483647.1).toString() is "2147483647.1"
283PASS Number.prototype.toString.call(2147483647.1) is "2147483647.1"
284PASS Number.prototype.toString.call(new Number(2147483647.1)) is "2147483647.1"
285PASS Number("2147483647.1").toString() is "2147483647.1"
286PASS Number(2147483647.1).toString(10) is "2147483647.1"
287PASS Number(2147483647.1).toString(2) is "1111111111111111111111111111111.000110011001100110011"
288PASS Number.prototype.toString.call(2147483647.1, 2) is "1111111111111111111111111111111.000110011001100110011"
289PASS Number.prototype.toString.call(new Number(2147483647.1), 2) is "1111111111111111111111111111111.000110011001100110011"
290FAIL Number(2147483647.1).toString(36) should be zik0zj.3lllg. Was zik0zj.3lllfu07ldi.
291FAIL Number.prototype.toString.call(2147483647.1, 36) should be zik0zj.3lllg. Was zik0zj.3lllfu07ldi.
292FAIL Number.prototype.toString.call(new Number(2147483647.1), 36) should be zik0zj.3lllg. Was zik0zj.3lllfu07ldi.
293PASS Number(-2147483648.1).toString() is "-2147483648.1"
294PASS Number.prototype.toString.call(-2147483648.1) is "-2147483648.1"
295PASS Number.prototype.toString.call(new Number(-2147483648.1)) is "-2147483648.1"
296PASS Number("-2147483648.1").toString() is "-2147483648.1"
297PASS Number(-2147483648.1).toString(10) is "-2147483648.1"
298PASS Number(-2147483648.1).toString(2) is "-10000000000000000000000000000000.000110011001100110011"
299PASS Number.prototype.toString.call(-2147483648.1, 2) is "-10000000000000000000000000000000.000110011001100110011"
300PASS Number.prototype.toString.call(new Number(-2147483648.1), 2) is "-10000000000000000000000000000000.000110011001100110011"
301FAIL Number(-2147483648.1).toString(36) should be -zik0zk.3lllg. Was -zik0zk.3lllfu07ldi.
302FAIL Number.prototype.toString.call(-2147483648.1, 36) should be -zik0zk.3lllg. Was -zik0zk.3lllfu07ldi.
303FAIL Number.prototype.toString.call(new Number(-2147483648.1), 36) should be -zik0zk.3lllg. Was -zik0zk.3lllfu07ldi.
304PASS Number(9007199254740992).toString() is "9007199254740992"
305PASS Number.prototype.toString.call(9007199254740992) is "9007199254740992"
306PASS Number.prototype.toString.call(new Number(9007199254740992)) is "9007199254740992"
307PASS Number("9007199254740992").toString() is "9007199254740992"
308PASS Number(9007199254740992).toString(10) is "9007199254740992"
309PASS Number(9007199254740992).toString(2) is "100000000000000000000000000000000000000000000000000000"
310PASS Number.prototype.toString.call(9007199254740992, 2) is "100000000000000000000000000000000000000000000000000000"
311PASS Number.prototype.toString.call(new Number(9007199254740992), 2) is "100000000000000000000000000000000000000000000000000000"
312PASS Number(9007199254740992).toString(36) is "2gosa7pa2gw"
313PASS Number.prototype.toString.call(9007199254740992, 36) is "2gosa7pa2gw"
314PASS Number.prototype.toString.call(new Number(9007199254740992), 36) is "2gosa7pa2gw"
315PASS Number(-9007199254740992).toString() is "-9007199254740992"
316PASS Number.prototype.toString.call(-9007199254740992) is "-9007199254740992"
317PASS Number.prototype.toString.call(new Number(-9007199254740992)) is "-9007199254740992"
318PASS Number("-9007199254740992").toString() is "-9007199254740992"
319PASS Number(-9007199254740992).toString(10) is "-9007199254740992"
320PASS Number(-9007199254740992).toString(2) is "-100000000000000000000000000000000000000000000000000000"
321PASS Number.prototype.toString.call(-9007199254740992, 2) is "-100000000000000000000000000000000000000000000000000000"
322PASS Number.prototype.toString.call(new Number(-9007199254740992), 2) is "-100000000000000000000000000000000000000000000000000000"
323PASS Number(-9007199254740992).toString(36) is "-2gosa7pa2gw"
324PASS Number.prototype.toString.call(-9007199254740992, 36) is "-2gosa7pa2gw"
325PASS Number.prototype.toString.call(new Number(-9007199254740992), 36) is "-2gosa7pa2gw"
326PASS successfullyParsed is true
327
328TEST COMPLETE
329
330