for-expr () { run-file for-expr "$@" } run-file () { local spec_name=$1; shift; sh-spec spec/$spec_name.test.sh --compare-shells --oils-bin-dir $PWD/bin "$@" } for-expr: spec test case results

Results for for-expr.test.sh

statusbash-4zshosh
pass 989
ok 010
total999
casebash-4zshoshdescription
0pass pass pass C-style for loop
1pass pass pass For loop with and without semicolon
2pass pass pass Accepts { } syntax too
3pass pass pass Empty init
4pass pass pass Empty init and cond
5pass pass pass Infinite loop with ((;;))
6pass ok pass Arith lexer mode
details
7pass pass pass Integers near 31, 32, 62 bits
8pass pass pass Condition that's greater than 32 bits
26 passed, 1 OK, 0 not implemented, 0 BUG, 0 failed, 0 timeouts, 0 cases skipped

Details on runs that didn't PASS

zsh6 Arith lexer mode

stdout:
stderr: 
zsh: bad math expression: operand expected at `'3''