Artifact 86a9398ad5daf3fa8e77f2338461357034347f5c:
- File bindings/s2/unit/200-300-dowhile.s2 — part of check-in [fdc5e1014e] at 2021-02-11 12:42:23 on branch trunk — Moved C++ and s2 bindings to bindings/{cpp,s2}. Got the C++ bindings compiling for new gcc breakage and new, stricter T-card validation. (user: stephan size: 706)
- File s2/unit/200-300-dowhile.s2 — part of check-in [f063fd4f0f] at 2021-02-08 06:15:57 on branch trunk — Updated s2 and brought old fossil bindings up to date wrt cwal/s2 changes made since then. Core s2 unit tests are inexplicably failing with a bogus(?) OOM report with this shell build, but they work in the core s2 tree and libf unit tests are passing. (user: stephan size: 706)
var i; i = 0; do{++i}while(i<5); assert 5 === i; i = 0; do ++i; while(i<5); assert 5 === i; assert 'CWAL_SCR_SYNTAX' === catch{ do ++i while(true) /* missing semicolon after ++i */ }.codeString(); i = 0; do{ ++i } while(!i); assert 1 === i; assert -1 === do{ break -1; }while(true); assert undefined === do ; while(false) /* if a for/while loop body may be empty, why not a do loop, too? */ ; i = 0; do ++i>2 && break; while(true); assert 3 === i; i = 0; do i++>2 && break; while(true); assert 4 === i /* yes, four */; i = 0; assert !catch{0 ? do ++i; while(i<2) : 1} /* no syntax error */; assert !i; assert !catch{1 ? do ++i; while(i<2) : 1} /* no syntax error */; assert 2 === i;