mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-25 10:48:41 +00:00
Libraries: Move to Userland/Libraries/
This commit is contained in:
@@ -1,25 +0,0 @@
|
||||
test("basic functionality", () => {
|
||||
let number = 0;
|
||||
while (number < 9) {
|
||||
number++;
|
||||
}
|
||||
expect(number).toBe(9);
|
||||
});
|
||||
|
||||
test("no braces", () => {
|
||||
let number = 0;
|
||||
while (number < 3) number++;
|
||||
expect(number).toBe(3);
|
||||
});
|
||||
|
||||
test("does not loop when initially false", () => {
|
||||
while (false) {
|
||||
expect().fail();
|
||||
}
|
||||
});
|
||||
|
||||
test("exception in test expression", () => {
|
||||
expect(() => {
|
||||
while (foo);
|
||||
}).toThrow(ReferenceError);
|
||||
});
|
||||
Reference in New Issue
Block a user