Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Issue #102 Fixed Number.toString method
- Loading branch information
Showing
3 changed files
with
37 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
Src/Tests/Sputnik/sputnik-v1/tests/Conformance/08_Types/8.5_The_Number_Type/S8.5_A15.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
/** | ||
* @name: S8.5_A8; | ||
* @section: 8.5, 7.8.3; | ||
* @assertion: Number.toString(16) should return valid number | ||
* @description: https://github.com/fholm/IronJS/issues/102 | ||
*/ | ||
|
||
var n = 9999; | ||
var n16 = n.toString(16) | ||
|
||
if (n16 !== "270F") { | ||
$ERROR("#1: Number.toString(16) should return valid number. Expected 270F, but have " + n16); | ||
} | ||
|
||
n = -9999; | ||
n16 = n.toString(16) | ||
|
||
if (n16 !== "-270F") { | ||
$ERROR("#2: Number.toString(16) should return valid number. Expected -270F, but have " + n16); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters