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:
parent
918f4affd5
commit
15de2eda2b
72 changed files with 2394 additions and 1998 deletions
|
@ -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);
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue