Merge branch 'while' into grammar-tweaks

This commit is contained in:
Chris Wanstrath 2025-11-03 20:12:29 -08:00
commit 2fab792c1a

View File

@ -34,4 +34,15 @@ describe('while', () => {
b`)
.toEvaluateTo(100)
})
test('returns value', () => {
expect(`
a = 0
ret = while a < 10:
a += 1
done
end
ret`)
.toEvaluateTo('done')
})
})