mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 14:38:11 +00:00
LibJS: Add Number.parseFloat()
This commit is contained in:
parent
6f6b089aa0
commit
73eef31f49
4 changed files with 14 additions and 1 deletions
11
Libraries/LibJS/Tests/Number.parseFloat.js
Normal file
11
Libraries/LibJS/Tests/Number.parseFloat.js
Normal file
|
@ -0,0 +1,11 @@
|
|||
load("test-common.js");
|
||||
|
||||
try {
|
||||
// Ensuring it's the same function as the global
|
||||
// parseFloat() is enough as that already has tests :^)
|
||||
assert(Number.parseFloat === parseFloat);
|
||||
|
||||
console.log("PASS");
|
||||
} catch (e) {
|
||||
console.log("FAIL: " + e);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue