spec test index / oilshell.org
status | osh | |
pass | 11 | |
FAIL | 3 | |
total | 14 | |
case | osh | description |
0 | pass | Int |
1 | pass | Float |
2 | pass | Null |
3 | pass | Bool |
4 | pass | String |
5 | pass | Range |
6 | pass | Eggex (reference type) |
7 | pass | SparseArray, new representation for bash array |
8 | pass | BashArray, short |
9 | FAIL | BashArray, long |
details | ||
10 | pass | BashAssoc, short |
11 | FAIL | BashAssoc, long |
details | ||
12 | pass | Simple Cycles |
13 | FAIL | Complex Cycles |
details |
11 passed, 0 OK, 0 not implemented, 0 BUG, 3 failed, 0 timeouts, 0 cases skipped 3 failed under osh
osh | 9 BashArray, long [osh stdout] Expected "(BashArray 'world' null '*.py')\n(BashArray\n 'Lorem' 'ipsum' 'dolor' 'sit' 'amet,'\n 'consectetur' 'adipiscing' 'elit,' 'sed' 'do'\n 'eiusmod.'\n)\n" Got "(BashArray 'world' null '*.py')\n(BashArray\n" [osh status] Expected 0, got 1 [osh stderr] Found 'Traceback (most recent' stdout: (BashArray 'world' null '*.py') (BashArraystderr: Traceback (most recent call last): File "/home/uke/oil/bin/oils_for_unix.py", line 198, in <module> sys.exit(main(sys.argv)) File "/home/uke/oil/bin/oils_for_unix.py", line 170, in main return AppBundleMain(argv) File "/home/uke/oil/bin/oils_for_unix.py", line 140, in AppBundleMain return shell.Main('osh', arg_r, environ, login_shell, loader, readline) File "/home/uke/oil/core/shell.py", line 1137, in Main cmd_flags=cmd_eval.IsMainProgram) File "/home/uke/oil/core/main_loop.py", line 364, in Batch is_return, is_fatal = cmd_ev.ExecuteAndCatch(node, cmd_flags=cmd_flags) File "/home/uke/oil/osh/cmd_eval.py", line 1950, in ExecuteAndCatch status = self._Execute(node) File "/home/uke/oil/osh/cmd_eval.py", line 1772, in _Execute status = self._Dispatch(node, cmd_st) File "/home/uke/oil/osh/cmd_eval.py", line 1629, in _Dispatch status = self._DoExpr(node) File "/home/uke/oil/osh/cmd_eval.py", line 945, in _DoExpr ui.PrettyPrintValue(val, mylib.Stdout()) File "/home/uke/oil/core/ui.py", line 536, in PrettyPrintValue printer.PrintValue(val, f) File "/home/uke/oil/data_lang/pretty.py", line 324, in PrintValue self._PrintDoc(document, buf) File "/home/uke/oil/data_lang/pretty.py", line 363, in _PrintDoc buf.write_spaces(frag.indent) AttributeError: 'file' object has no attribute 'write_spaces' |
osh | 11 BashAssoc, long [osh stdout] Expected "(BashAssoc)\n(BashAssoc ['1']='one')\n(BashAssoc ['1']='one' ['two']='2' ['3']='three')\n(BashAssoc\n ['Lorem']='ipsum'\n ['dolor']='sit amet,'\n ['consectetur adipiscing']='elit, sed'\n ['do']='eiusmod.'\n)\n" Got "(BashAssoc)\n(BashAssoc ['1']='one')\n(BashAssoc ['1']='one' ['two']='2' ['3']='three')\n(BashAssoc\n" [osh status] Expected 0, got 1 [osh stderr] Found 'Traceback (most recent' stdout: (BashAssoc) (BashAssoc ['1']='one') (BashAssoc ['1']='one' ['two']='2' ['3']='three') (BashAssocstderr: Traceback (most recent call last): File "/home/uke/oil/bin/oils_for_unix.py", line 198, in <module> sys.exit(main(sys.argv)) File "/home/uke/oil/bin/oils_for_unix.py", line 170, in main return AppBundleMain(argv) File "/home/uke/oil/bin/oils_for_unix.py", line 140, in AppBundleMain return shell.Main('osh', arg_r, environ, login_shell, loader, readline) File "/home/uke/oil/core/shell.py", line 1137, in Main cmd_flags=cmd_eval.IsMainProgram) File "/home/uke/oil/core/main_loop.py", line 364, in Batch is_return, is_fatal = cmd_ev.ExecuteAndCatch(node, cmd_flags=cmd_flags) File "/home/uke/oil/osh/cmd_eval.py", line 1950, in ExecuteAndCatch status = self._Execute(node) File "/home/uke/oil/osh/cmd_eval.py", line 1772, in _Execute status = self._Dispatch(node, cmd_st) File "/home/uke/oil/osh/cmd_eval.py", line 1629, in _Dispatch status = self._DoExpr(node) File "/home/uke/oil/osh/cmd_eval.py", line 945, in _DoExpr ui.PrettyPrintValue(val, mylib.Stdout()) File "/home/uke/oil/core/ui.py", line 536, in PrettyPrintValue printer.PrintValue(val, f) File "/home/uke/oil/data_lang/pretty.py", line 324, in PrintValue self._PrintDoc(document, buf) File "/home/uke/oil/data_lang/pretty.py", line 363, in _PrintDoc buf.write_spaces(frag.indent) AttributeError: 'file' object has no attribute 'write_spaces' |
osh | 13 Complex Cycles [osh stdout] Expected '(Dict)\n{\n nothing: null,\n simple_cycle: [[[...]]],\n tricky_cycle: [{...}],\n dag: [[1, 2, [...]], [1, 2, [...]]],\n key_alpha: {omega: {alpha: {...}}},\n key_omega: {alpha: {omega: {...}}}\n}\n' Got '(Dict)\n' [osh status] Expected 0, got 1 [osh stderr] Found 'Traceback (most recent' stdout: (Dict)stderr: Traceback (most recent call last): File "/home/uke/oil/bin/oils_for_unix.py", line 198, in <module> sys.exit(main(sys.argv)) File "/home/uke/oil/bin/oils_for_unix.py", line 170, in main return AppBundleMain(argv) File "/home/uke/oil/bin/oils_for_unix.py", line 140, in AppBundleMain return shell.Main('osh', arg_r, environ, login_shell, loader, readline) File "/home/uke/oil/core/shell.py", line 1137, in Main cmd_flags=cmd_eval.IsMainProgram) File "/home/uke/oil/core/main_loop.py", line 364, in Batch is_return, is_fatal = cmd_ev.ExecuteAndCatch(node, cmd_flags=cmd_flags) File "/home/uke/oil/osh/cmd_eval.py", line 1950, in ExecuteAndCatch status = self._Execute(node) File "/home/uke/oil/osh/cmd_eval.py", line 1772, in _Execute status = self._Dispatch(node, cmd_st) File "/home/uke/oil/osh/cmd_eval.py", line 1629, in _Dispatch status = self._DoExpr(node) File "/home/uke/oil/osh/cmd_eval.py", line 945, in _DoExpr ui.PrettyPrintValue(val, mylib.Stdout()) File "/home/uke/oil/core/ui.py", line 536, in PrettyPrintValue printer.PrintValue(val, f) File "/home/uke/oil/data_lang/pretty.py", line 324, in PrintValue self._PrintDoc(document, buf) File "/home/uke/oil/data_lang/pretty.py", line 363, in _PrintDoc buf.write_spaces(frag.indent) AttributeError: 'file' object has no attribute 'write_spaces' |