Results for ysh-printing.test.sh

statusosh
pass 11
FAIL 3
total14
caseoshdescription
0pass Int
1pass Float
2pass Null
3pass Bool
4pass String
5pass Range
6pass Eggex (reference type)
7pass SparseArray, new representation for bash array
8pass BashArray, short
9FAIL BashArray, long
details
10pass BashAssoc, short
11FAIL BashAssoc, long
details
12pass Simple Cycles
13FAIL Complex Cycles
details
11 passed, 0 OK, 0 not implemented, 0 BUG, 3 failed, 0 timeouts, 0 cases skipped
3 failed under osh

Details on runs that didn't PASS

osh9 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')
(BashArray
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'
osh11 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')
(BashAssoc
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'
osh13 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'