mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 11:18:11 +00:00
LibJS: Add Math.sqrt()
This commit is contained in:
parent
d155491122
commit
d4dfe7e525
3 changed files with 23 additions and 3 deletions
7
Libraries/LibJS/Tests/Math.sqrt.js
Normal file
7
Libraries/LibJS/Tests/Math.sqrt.js
Normal file
|
@ -0,0 +1,7 @@
|
|||
function assert(x) { if (!x) throw 1; }
|
||||
|
||||
try {
|
||||
assert(Math.sqrt(9) === 3);
|
||||
console.log("PASS");
|
||||
} catch {
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue