spec test index / oilshell.org
status | osh | |
FAIL | 15 | |
total | 15 | |
case | osh | description |
0 | FAIL | setvar f()[2] = 42 (setitem) |
details | ||
1 | FAIL | Untyped func |
details | ||
2 | FAIL | Typed func |
details | ||
3 | FAIL | func: default values for positional params |
details | ||
4 | FAIL | pass too many positional params to func (without spread) |
details | ||
5 | FAIL | Positional Spread |
details | ||
6 | FAIL | pass named arg to func |
details | ||
7 | FAIL | Func with missing named param with no default |
details | ||
8 | FAIL | Func passed wrong named param |
details | ||
9 | FAIL | Named Spread |
details | ||
10 | FAIL | Func with varargs |
details | ||
11 | FAIL | return expression then return builtin |
details | ||
12 | FAIL | inline function calls with spread, named args, etc. |
details | ||
13 | FAIL | basic lambda |
details | ||
14 | FAIL | Nested functions ??? Bug from Till. |
details |
0 passed, 0 OK, 0 not implemented, 0 BUG, 15 failed, 0 timeouts, 0 cases skipped 15 failed under osh
osh | 0 setvar f()[2] = 42 (setitem) [osh stdout] Expected '1\n2\n42\n', got '' [osh status] Expected 0, got 1 stdout: stderr: FATAL: NotImplementedError() |
osh | 1 Untyped func [osh stdout] Expected 'hi\n43\n', got '' [osh status] Expected 0, got 1 stdout: stderr: FATAL: NotImplementedError() |
osh | 2 Typed func [osh stdout] Expected 'hi\n43\n', got '' [osh status] Expected 0, got 1 stdout: stderr: FATAL: NotImplementedError() |
osh | 3 func: default values for positional params [osh stdout] Expected '11\n14\n', got '' [osh status] Expected 0, got 1 stdout: stderr: FATAL: NotImplementedError() |
osh | 4 pass too many positional params to func (without spread) [osh stdout] Expected 'f=3\n', got '' stdout: stderr: FATAL: NotImplementedError() |
osh | 5 Positional Spread [osh stdout] Expected '7\n8\ny=11\n', got '' [osh status] Expected 0, got 2 stdout: stderr: pp cell ':args' # This works in Tea too for debugging ^~~~ [ stdin ]:4: Syntax error in expression (near Id.Expr_Name) |
osh | 6 pass named arg to func [osh stdout] Expected '42\n99\n', got '' [osh status] Expected 0, got 1 stdout: stderr: FATAL: NotImplementedError() |
osh | 7 Func with missing named param with no default [osh stdout] Expected 'verbose\n5\n', got '' [osh status] Expected 1, got 2 stdout: stderr: if (verbose) { ^~ [ stdin ]:4: Syntax error in expression (near Id.Expr_If) |
osh | 8 Func passed wrong named param [osh stdout] Expected 'x=5\n', got '' stdout: stderr: FATAL: NotImplementedError() |
osh | 9 Named Spread [osh stdout] Expected 'a\nb\nf\nret=5\n', got '' [osh status] Expected 0, got 2 stdout: stderr: if (verbose) { echo 'verbose' } ^~ [ stdin ]:4: Syntax error in expression (near Id.Expr_If) |
osh | 10 Func with varargs [osh stdout] Expected "(Str) 'foo'\n(Tuple) ('a', 42, None)\n", got '' [osh status] Expected 0, got 2 stdout: stderr: = fmt ^ [ stdin ]:4: Syntax error in expression (near Id.Arith_Equal) |
osh | 11 return expression then return builtin [osh stdout] Expected 'x=42\nstatus=42\n', got '' [osh status] Expected 0, got 1 stdout: stderr: FATAL: NotImplementedError() |
osh | 12 inline function calls with spread, named args, etc. [osh stdout] Expected '____\n__\nargs:\n42\n43\n__\nnamed:\n\nstring\n6\n____\n__\nargs:\n42\n43\n__\nnamed:\nx\ny\narray\n5\n6\n7\n8\n', got '' [osh status] Expected 0, got 2 stdout: stderr: func f(a, b=0, ...args; c, d=0, ...named) { ^ [ stdin ]:2: Unexpected word while parsing command line |
osh | 13 basic lambda [osh stdout] Expected '1\n43\n', got '' [osh status] Expected 0, got 1 stdout: stderr: FATAL: NotImplementedError() |
osh | 14 Nested functions ??? Bug from Till. [osh status] Expected 0, got 2 stdout: stderr: func unrelated() {return "hm?"} ^~~~~~~~~ [ stdin ]:4: Syntax error in expression (near Id.Expr_Name) |