mirror of
https://github.com/RGBCube/serenity
synced 2025-05-18 21:45:08 +00:00
Libraries: Move to Userland/Libraries/
This commit is contained in:
parent
dc28c07fa5
commit
13d7c09125
1857 changed files with 266 additions and 274 deletions
|
@ -1,20 +0,0 @@
|
|||
test("basic functionality", () => {
|
||||
const x = 1;
|
||||
|
||||
expect(x === 1 ? true : false).toBeTrue();
|
||||
expect(x ? x : 0).toBe(x);
|
||||
expect(1 < 2 ? true : false).toBeTrue();
|
||||
expect(0 ? 1 : 1 ? 10 : 20).toBe(10);
|
||||
expect(0 ? (1 ? 1 : 10) : 20).toBe(20);
|
||||
});
|
||||
|
||||
test("object values", () => {
|
||||
const o = {};
|
||||
o.f = true;
|
||||
expect(o.f ? true : false).toBeTrue();
|
||||
expect(1 ? o.f : null).toBeTrue();
|
||||
});
|
||||
|
||||
test("issue #4409, '?.' followed by decimal digit", () => {
|
||||
expect("return false?.1:.2").toEvalTo(0.2);
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue