diff options
Diffstat (limited to 'Userland/Libraries/LibJS/Tests/loops/continue-basic.js')
-rw-r--r-- | Userland/Libraries/LibJS/Tests/loops/continue-basic.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Userland/Libraries/LibJS/Tests/loops/continue-basic.js b/Userland/Libraries/LibJS/Tests/loops/continue-basic.js new file mode 100644 index 0000000000..765a9ead18 --- /dev/null +++ b/Userland/Libraries/LibJS/Tests/loops/continue-basic.js @@ -0,0 +1,10 @@ +test("basic functionality", () => { + var j = 0; + for (var i = 0; i < 9; ++i) { + if (i == 3) { + continue; + } + ++j; + } + expect(j).toBe(8); +}); |