spec test index / oilshell.org
status | osh | osh-cpp | |
pass | 6 | 6 | |
FAIL | 5 | 5 | |
total | 11 | 11 | |
case | osh | osh-cpp | description |
0 | pass | pass | Splice in array |
1 | pass | pass | Assoc array can't be spliced directly |
2 | pass | pass | Can't splice string |
3 | pass | pass | Can't splice undefined |
4 | FAIL | FAIL | echo $[f(x)] for various types |
details | details | ||
5 | FAIL | FAIL | echo $f (x) with space is runtime error |
details | details | ||
6 | FAIL | FAIL | echo @f (x) with space is runtime error |
details | details | ||
7 | pass | pass | echo $x for various types |
8 | pass | pass | Wrong sigil with $range() is runtime error |
9 | FAIL | FAIL | Serializing type in a list |
details | details | ||
10 | FAIL | FAIL | Wrong sigil @[max(3, 4)] |
details | details |
12 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 35654: command.Simple failed with status 2 |
osh-cpp | 4 echo $[f(x)] for various types [osh-cpp stdout] Expected 'bool true\nint 2\nfloat 3.14\nstr identity\n---\nbool expr true\nbool splice true\n' Got '' [osh-cpp 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 35668: 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 35680: command.Simple failed with status 2 |
osh-cpp | 5 echo $f (x) with space is runtime error [osh-cpp 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 35691: 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 35701: command.Simple failed with status 2 |
osh-cpp | 6 echo @f (x) with space is runtime error [osh-cpp 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 35717: 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-cpp | 9 Serializing type in a list [osh-cpp 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 35801: command.Simple failed with status 2 |
osh-cpp | 10 Wrong sigil @[max(3, 4)] [osh-cpp 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 35821: command.Simple failed with status 2 |