1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 08:58:11 +00:00

LibJS: Convert all remaining non-Array tests to the new system :)

This commit is contained in:
Matthew Olsson 2020-07-05 17:26:26 -07:00 committed by Andreas Kling
parent 918f4affd5
commit 15de2eda2b
72 changed files with 2394 additions and 1998 deletions

View file

@ -1,6 +1,4 @@
load("test-common.js");
try {
test("basic functionality", () => {
const vals = [
1,
2,
@ -723,13 +721,9 @@ try {
let x = vals[test[0]];
let y = vals[test[1]];
assert(x < y === test[2]);
assert(x > y === test[3]);
assert(x <= y === test[4]);
assert(x >= y === test[5]);
expect(x < y).toBe(test[2]);
expect(x > y).toBe(test[3]);
expect(x <= y).toBe(test[4]);
expect(x >= y).toBe(test[5]);
}
console.log("PASS");
} catch (e) {
console.log("FAIL: " + e);
}
});