spec test index / oilshell.org
112 passed, 0 OK, 0 not implemented, 0 BUG, 4 failed, 0 timeouts, 0 cases skipped 4 failed under osh
osh | 13 Wrong sigil $range() shows representation of iterator? [osh stdout] Expected 'TODO\n', got '' [osh status] Expected 0, got 1 stdout: stderr: echo $range(10, 15, 2) ^~~~ [ stdin ]:2: fatal: Expected function to return a bool, int, float, or string. Got <type 'xrange'> |
osh_ALT | 13 Wrong sigil $range() shows representation of iterator? [osh_ALT stdout] Expected 'TODO\n', got '' [osh_ALT status] Expected 0, got 1 stdout: stderr: echo $range(10, 15, 2) ^~~~ [ stdin ]:2: fatal: Expected function to return a bool, int, float, or string. Got <type 'xrange'> |
osh | 14 Wrong sigil @max(3, 4) [osh stdout] Expected 'TODO\n', got '' [osh status] Expected 0, got 1 [osh stderr] Found 'Traceback (most recent' stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/oil.py", line 360, in <module> sys.exit(main(sys.argv)) File "/home/andy/git/oilshell/oil/bin/oil.py", line 303, in main return AppBundleMain(argv) File "/home/andy/git/oilshell/oil/bin/oil.py", line 262, in AppBundleMain loader, line_input) File "/home/andy/git/oilshell/oil/core/shell.py", line 681, in Main cmd_flags=cmd_eval.IsMainProgram) File "/home/andy/git/oilshell/oil/core/main_loop.py", line 332, 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 1558, in ExecuteAndCatch status = self._Execute(node) File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1396, in _Execute status = self._Dispatch(node, cmd_st) File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 659, in _Dispatch cmd_val = self.word_ev.EvalWordSequence2(words, allow_assign=True) File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 2158, in EvalWordSequence2 return self.SimpleEvalWordSequence2(words, allow_assign) File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 2118, in SimpleEvalWordSequence2 self._EvalWordToParts(w, part_vals, 0) # not quoted File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1705, in _EvalWordToParts self._EvalWordPart(p, word_part_vals, eval_flags) File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1657, in _EvalWordPart a = [_Stringify(item) for item in func(*pos_args, **named_args)] TypeError: 'int' object is not iterable |
osh_ALT | 14 Wrong sigil @max(3, 4) [osh_ALT stdout] Expected 'TODO\n', got '' [osh_ALT status] Expected 0, got 1 [osh_ALT stderr] Found 'Traceback (most recent' stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/oil.py", line 330, in _cpython_main_hook sys.exit(main(sys.argv)) File "/home/andy/git/oilshell/oil/bin/oil.py", line 303, in main return AppBundleMain(argv) File "/home/andy/git/oilshell/oil/bin/oil.py", line 294, in AppBundleMain return readlink.main(main_argv) File "/home/andy/git/oilshell/oil/core/shell.py", line 681, in Main cmd_flags=cmd_eval.IsMainProgram) File "/home/andy/git/oilshell/oil/core/main_loop.py", line 338, in Batch return status File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1558, in ExecuteAndCatch status = self._Execute(node) File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1396, in _Execute status = self._Dispatch(node, cmd_st) File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 716, in _Dispatch status = self._Execute(node.child) File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 2158, in EvalWordSequence2 return self.SimpleEvalWordSequence2(words, allow_assign) File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 2118, in SimpleEvalWordSequence2 self._EvalWordToParts(w, part_vals, 0) # not quoted File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1742, in _EvalWordToParts part_vals.append(part_value.String('', quoted, not quoted)) File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1670, in _EvalWordPart part_vals.append(part_val) TypeError: 'int' object is not iterable FATAL: couldn't import from app bundle '/home/andy/git/oilshell/oil/_tmp/oil-tar-test/oil-0.10.1/_bin/osh' (1) Stripping the oil.ovm binary may cause this error. See https://github.com/oilshell/oil/issues/47 |
osh | 31 Float Literals with _ (requires re2c refinement) [osh stdout] Expected 'less\ngreat\n', got '' [osh status] Expected 0, got 2 stdout: stderr: var x = 1.2 + 2_3.0e-1 # 3.5 ^~~~ [ stdin ]:2: Syntax error in expression (near Id.Expr_Float) |
osh_ALT | 31 Float Literals with _ (requires re2c refinement) [osh_ALT stdout] Expected 'less\ngreat\n', got '' [osh_ALT status] Expected 0, got 2 stdout: stderr: var x = 1.2 + 2_3.0e-1 # 3.5 ^~~~ [ stdin ]:2: Syntax error in expression (near Id.Expr_Float) |
osh | 58 Equality of ~== with Float (deferred) [osh status] Expected 0, got 1 stdout: stderr: if (42 ~== 42.0) { ^~~ [ stdin ]:3: fatal: ~== expects a string on the left |
osh_ALT | 58 Equality of ~== with Float (deferred) [osh_ALT status] Expected 0, got 1 stdout: stderr: if (42 ~== 42.0) { ^~~ [ stdin ]:3: fatal: ~== expects a string on the left |