Debian Codegraph @

js/src/tests/test262/built-ins/Number/S9.3_A4.1_T1.js

raw
1 // Copyright 2009 the Sputnik authors. All rights reserved.
2 // This code is governed by the BSD license found in the LICENSE file.
3
4 /*---
5 info: |
6 Result of number conversion from number value equals to the input
7 argument (no conversion)
8 es5id: 9.3_A4.1_T1
9 description: >
10 Some numbers including Number.MAX_VALUE and Number.MIN_VALUE are
11 converted to Number with explicit transformation
12 ---*/
13 assert.sameValue(Number(13), 13, 'Number(13) must return 13');
14 assert.sameValue(Number(-13), -13, 'Number(-13) must return -13');
15 assert.sameValue(Number(1.3), 1.3, 'Number(1.3) must return 1.3');
16 assert.sameValue(Number(-1.3), -1.3, 'Number(-1.3) must return -1.3');
17
18 reportCompare(0, 0);