mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 03:57:43 +00:00
LibJS: Use the native assert() implementation now avaiable in 'js -t'
Switch the LibJS test suite to use the native assert implementation surfaced inside the js repl when it's launched in test mode.
This commit is contained in:
parent
4233c8662b
commit
bc40908d32
60 changed files with 2 additions and 119 deletions
|
@ -1,5 +1,3 @@
|
|||
function assert(x) { if (!x) throw 1; }
|
||||
|
||||
// FIXME: The parser seems to have issues with decimals,
|
||||
// so we multiply everything and compare with whole numbers.
|
||||
// I.e. 1233 < X * 1000 < 1235 instead of 1.233 < X < 1.235
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue