ladybird/Libraries/LibJS/Tests/Number.parseFloat.js
2020-05-17 16:21:38 +02:00

11 lines
263 B
JavaScript

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);
}