spec test index / oilshell.org
status | osh | |
pass | 6 | |
FAIL | 5 | |
total | 11 | |
case | osh | description |
0 | pass | Splice in array |
1 | pass | Assoc array can't be spliced directly |
2 | pass | Can't splice string |
3 | pass | Can't splice undefined |
4 | FAIL | echo $[f(x)] for various types |
details | ||
5 | FAIL | echo $f (x) with space is runtime error |
details | ||
6 | FAIL | echo @f (x) with space is runtime error |
details | ||
7 | pass | echo $x for various types |
8 | pass | Wrong sigil with $range() is runtime error |
9 | FAIL | Serializing type in a list |
details | ||
10 | FAIL | Wrong sigil @[max(3, 4)] |
details |
6 passed, 0 OK, 0 not implemented, 0 BUG, 5 failed, 0 timeouts, 0 cases skipped 5 failed under osh
osh | 4 echo $[f(x)] for various types [osh stdout] Expected 'bool true\nint 2\nfloat 3.14\nstr identity\n---\nbool expr true\nbool splice true\n' Got '' [osh status] Expected 0, got 2 stdout: stderr: for i in (1 .. len(list)) { ^~ stdlib/ysh/math.ysh:23: Use 1..<5 for an open range, or 1..=5 for a closed range source $LIB_YSH/math.ysh ^~~~~~ [ stdin ]:3: errexit PID 41280: command.Simple failed with status 2 |
osh | 5 echo $f (x) with space is runtime error [osh status] Expected 3, got 2 stdout: stderr: for i in (1 .. len(list)) { ^~ stdlib/ysh/math.ysh:23: Use 1..<5 for an open range, or 1..=5 for a closed range source $LIB_YSH/math.ysh ^~~~~~ [ stdin ]:3: errexit PID 41283: command.Simple failed with status 2 |
osh | 6 echo @f (x) with space is runtime error [osh status] Expected 3, got 2 stdout: stderr: for i in (1 .. len(list)) { ^~ stdlib/ysh/math.ysh:23: Use 1..<5 for an open range, or 1..=5 for a closed range source $LIB_YSH/math.ysh ^~~~~~ [ stdin ]:3: errexit PID 41286: command.Simple failed with status 2 |
osh | 9 Serializing type in a list [osh status] Expected 3, got 1 stdout: 3 true ___stderr: var list2 = [List] ^~~~ [ stdin ]:9: fatal: Undefined variable 'List' |
osh | 10 Wrong sigil @[max(3, 4)] [osh status] Expected 3, got 2 stdout: stderr: for i in (1 .. len(list)) { ^~ stdlib/ysh/math.ysh:23: Use 1..<5 for an open range, or 1..=5 for a closed range source $LIB_YSH/math.ysh ^~~~~~ [ stdin ]:3: errexit PID 41298: command.Simple failed with status 2 |