Merge branch 'while' into grammar-tweaks
This commit is contained in:
commit
2fab792c1a
|
|
@ -34,4 +34,15 @@ describe('while', () => {
|
||||||
b`)
|
b`)
|
||||||
.toEvaluateTo(100)
|
.toEvaluateTo(100)
|
||||||
})
|
})
|
||||||
|
|
||||||
|
test('returns value', () => {
|
||||||
|
expect(`
|
||||||
|
a = 0
|
||||||
|
ret = while a < 10:
|
||||||
|
a += 1
|
||||||
|
done
|
||||||
|
end
|
||||||
|
ret`)
|
||||||
|
.toEvaluateTo('done')
|
||||||
|
})
|
||||||
})
|
})
|
||||||
Loading…
Reference in New Issue
Block a user