spec test index / oilshell.org
status | osh | |
pass | 17 | |
FAIL | 7 | |
total | 24 | |
case | osh | description |
0 | pass | Untyped func |
1 | pass | Typed func |
2 | pass | func: default values for positional params |
3 | FAIL | pass too many positional params to func (without spread) |
details | ||
4 | pass | Positional Spread |
5 | pass | pass named arg to func |
6 | FAIL | Func with missing named param with no default |
details | ||
7 | FAIL | Func passed wrong named param |
details | ||
8 | pass | Named Spread |
9 | pass | Func with varargs |
10 | pass | return expression then return builtin |
11 | pass | Open proc (any number of args) |
12 | FAIL | Closed proc with no args, passed too many |
details | ||
13 | pass | Open proc has "$@" |
14 | pass | Closed proc doesn't have "$@" |
15 | pass | Proc with default args |
16 | pass | Proc with explicit args |
17 | pass | Proc with varargs |
18 | pass | Proc name-with-hyphen |
19 | pass | Proc with block arg |
20 | pass | inline function calls with spread, named args, etc. |
21 | FAIL | basic lambda |
details | ||
22 | FAIL | proc returning wrong type |
details | ||
23 | FAIL | proc returning invalid string |
details |
17 passed, 0 OK, 0 not implemented, 0 BUG, 7 failed, 0 timeouts, 0 cases skipped 7 failed under osh
osh | 3 pass too many positional params to func (without spread) [osh stderr] Found 'Traceback (most recent' stdout: f=3stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/oil.py", line 375, in <module> sys.exit(main(sys.argv)) File "/home/andy/git/oilshell/oil/bin/oil.py", line 319, in main return AppBundleMain(argv) File "/home/andy/git/oilshell/oil/bin/oil.py", line 278, in AppBundleMain loader, line_input) File "/home/andy/git/oilshell/oil/core/shell.py", line 684, in Main cmd_flags=cmd_eval.IsMainProgram) File "/home/andy/git/oilshell/oil/core/main_loop.py", line 168, in Batch is_return, is_fatal = cmd_ev.ExecuteAndCatch(node, cmd_flags=cmd_flags) File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1438, in ExecuteAndCatch status = self._Execute(node) File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1318, in _Execute status, check_errexit = self._Dispatch(node) File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 665, in _Dispatch py_val = self.expr_ev.EvalExpr(node.rhs) File "/home/andy/git/oilshell/oil/oil_lang/expr_eval.py", line 496, in EvalExpr ret = func(*pos_args, **named_args) File "/home/andy/git/oilshell/oil/oil_lang/objects.py", line 160, in __call__ return self.cmd_ev.RunOilFunc(self, args, kwargs) File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1649, in RunOilFunc (node.name.val, n_params, n_args)) TypeError: func 'add' expected 2 arguments, but got 3 |
osh | 6 Func with missing named param with no default [osh stderr] Found 'Traceback (most recent' stdout: verbose 5stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/oil.py", line 375, in <module> sys.exit(main(sys.argv)) File "/home/andy/git/oilshell/oil/bin/oil.py", line 319, in main return AppBundleMain(argv) File "/home/andy/git/oilshell/oil/bin/oil.py", line 278, in AppBundleMain loader, line_input) File "/home/andy/git/oilshell/oil/core/shell.py", line 684, in Main cmd_flags=cmd_eval.IsMainProgram) File "/home/andy/git/oilshell/oil/core/main_loop.py", line 168, in Batch is_return, is_fatal = cmd_ev.ExecuteAndCatch(node, cmd_flags=cmd_flags) File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1438, in ExecuteAndCatch status = self._Execute(node) File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1318, in _Execute status, check_errexit = self._Dispatch(node) File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 665, in _Dispatch py_val = self.expr_ev.EvalExpr(node.rhs) File "/home/andy/git/oilshell/oil/oil_lang/expr_eval.py", line 496, in EvalExpr ret = func(*pos_args, **named_args) File "/home/andy/git/oilshell/oil/oil_lang/objects.py", line 160, in __call__ return self.cmd_ev.RunOilFunc(self, args, kwargs) File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1663, in RunOilFunc "value" % name.val) TypeError: Named argument 'verbose' wasn't passed, and it doesn't have a default value |
osh | 7 Func passed wrong named param [osh stderr] Found 'Traceback (most recent' stdout: x=5stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/oil.py", line 375, in <module> sys.exit(main(sys.argv)) File "/home/andy/git/oilshell/oil/bin/oil.py", line 319, in main return AppBundleMain(argv) File "/home/andy/git/oilshell/oil/bin/oil.py", line 278, in AppBundleMain loader, line_input) File "/home/andy/git/oilshell/oil/core/shell.py", line 684, in Main cmd_flags=cmd_eval.IsMainProgram) File "/home/andy/git/oilshell/oil/core/main_loop.py", line 168, in Batch is_return, is_fatal = cmd_ev.ExecuteAndCatch(node, cmd_flags=cmd_flags) File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1438, in ExecuteAndCatch status = self._Execute(node) File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1318, in _Execute status, check_errexit = self._Dispatch(node) File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 665, in _Dispatch py_val = self.expr_ev.EvalExpr(node.rhs) File "/home/andy/git/oilshell/oil/oil_lang/expr_eval.py", line 496, in EvalExpr ret = func(*pos_args, **named_args) File "/home/andy/git/oilshell/oil/oil_lang/objects.py", line 160, in __call__ return self.cmd_ev.RunOilFunc(self, args, kwargs) File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1676, in RunOilFunc (node.name.val, ', '.join(kwargs.keys()))) TypeError: func 'add' got unexpected named arguments: verbose |
osh | 12 Closed proc with no args, passed too many [osh stderr] Found 'Traceback (most recent' stdout: status=42stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/oil.py", line 375, in <module> sys.exit(main(sys.argv)) File "/home/andy/git/oilshell/oil/bin/oil.py", line 319, in main return AppBundleMain(argv) File "/home/andy/git/oilshell/oil/bin/oil.py", line 278, in AppBundleMain loader, line_input) File "/home/andy/git/oilshell/oil/core/shell.py", line 684, in Main cmd_flags=cmd_eval.IsMainProgram) File "/home/andy/git/oilshell/oil/core/main_loop.py", line 168, in Batch is_return, is_fatal = cmd_ev.ExecuteAndCatch(node, cmd_flags=cmd_flags) File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1438, in ExecuteAndCatch status = self._Execute(node) File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1318, in _Execute status, check_errexit = self._Dispatch(node) File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 570, in _Dispatch status = self._RunSimpleCommand(cmd_val, node.do_fork) File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 481, in _RunSimpleCommand return self.shell_ex.RunSimpleCommand(cmd_val, do_fork) File "/home/andy/git/oilshell/oil/core/executor.py", line 226, in RunSimpleCommand status = self.cmd_ev.RunOilProc(val.obj, argv[1:]) File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1575, in RunOilProc (node.name.val, n_params, n_args)) TypeError: proc 'f' expected 0 arguments, but got 2 |
osh | 21 basic lambda [osh stdout] Expected '1\n43\n', got '' [osh status] Expected 0, got 1 stdout: stderr: FATAL: NotImplementedError() |
osh | 22 proc returning wrong type [osh status] Expected 0, got 1 stdout: stderr: ['one', 'two'] |
osh | 23 proc returning invalid string [osh status] Expected 0, got 1 stdout: stderr: not an integer status |