Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/samualtnorman/js-interpreter.
Something went wrong. Try again.
1234567891011121314151617181920212223242526test("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);});