lang0/tests/stdlibskip.lang0
Johan B.W. de Vries 17841954de Added a number of tests
Fix: skip() would not work without peek() on iteration 0 or 1.
2025-02-02 15:13:03 +01:00

25 lines
284 B
Plaintext

main:
declare char
declare ish
declare iso
declare notish
declare notiso
skip
calc char peek
calc ish eq char "e"
calc notish not ish
if notish
return
/
skip
skip
skip
calc char peek
calc iso eq char "o"
calc notiso not iso
if notish
return
/
emit "Success"
/