Results for ysh-stdlib-testing.test.sh

statusyshysh_ALT
FAIL 55
total55
caseyshysh_ALTdescription
0FAIL FAIL value.Expr test - positional test
detailsdetails
1FAIL FAIL value.Expr test - named test
detailsdetails
2FAIL FAIL assert builtin
detailsdetails
3FAIL FAIL ysh --tool test file
detailsdetails
4FAIL FAIL Describe Prototype
detailsdetails
0 passed, 0 OK, 0 not implemented, 0 BUG, 10 failed, 0 timeouts, 0 cases skipped
5 failed under osh

Details on runs that didn't PASS

ysh0 value.Expr test - positional test

[ysh stdout] Expected '', got 'TODO\nparens\nexpr\n(Int) 43\n\nbrackets\nexpr\n(Expr) <Expr 0x7fec2884acb0>\n\nexpr in parens\nexpr\n(Expr) <Expr 0x7fec2889b248>\n\n'

stdout:
TODO
parens
expr
(Int)   43

brackets
expr
(Expr)   <Expr 0x7fec2884acb0>

expr in parens
expr
(Expr)   <Expr 0x7fec2889b248>

stderr:
ysh_ALT0 value.Expr test - positional test

[ysh_ALT stdout] Expected '', got 'TODO\nparens\nexpr\n(Int) 43\n\nbrackets\nexpr\n(Expr) <Expr 0x7f92bc16e3c8>\n\nexpr in parens\nexpr\n(Expr) <Expr 0x7f92bc16e788>\n\n'

stdout:
TODO
parens
expr
(Int)   43

brackets
expr
(Expr)   <Expr 0x7f92bc16e3c8>

expr in parens
expr
(Expr)   <Expr 0x7f92bc16e788>

stderr:
ysh1 value.Expr test - named test

[ysh stdout] Expected '', got 'TODO\nparens\nn\n(Int) 43\n\nbrackets\nn\n(Expr) <Expr 0x7f16b0bdacb0>\n\nexpr in parens\nn\n(Expr) <Expr 0x7f16b0c2b248>\n\nno value\nn\n(Expr) <Expr 0x7f16b0bda9e0>\n\n'

stdout:
TODO
parens
n
(Int)   43

brackets
n
(Expr)   <Expr 0x7f16b0bdacb0>

expr in parens
n
(Expr)   <Expr 0x7f16b0c2b248>

no value
n
(Expr)   <Expr 0x7f16b0bda9e0>

stderr:
ysh_ALT1 value.Expr test - named test

[ysh_ALT stdout] Expected '', got 'TODO\nparens\nn\n(Int) 43\n\nbrackets\nn\n(Expr) <Expr 0x7fca9079e448>\n\nexpr in parens\nn\n(Expr) <Expr 0x7fca9079e3c8>\n\nno value\nn\n(Expr) <Expr 0x7fca907ce488>\n\n'

stdout:
TODO
parens
n
(Int)   43

brackets
n
(Expr)   <Expr 0x7fca9079e448>

expr in parens
n
(Expr)   <Expr 0x7fca9079e3c8>

no value
n
(Expr)   <Expr 0x7fca907ce488>

stderr:
ysh2 assert builtin

[ysh stdout] Expected '', got 'TODO\nhi from assert\n(Expr) <Expr 0x7f16ecceed88>\n\nvalue\n(Bool) true\n(Bool) true\n(Str) "default fail message"\nOK\nhi from assert\n(Expr) <Expr 0x7f16ecceef38>\n\nvalue\n(Bool) false\n(Bool) false\n(Str) "default fail message"\n'
[ysh status] Expected 0, got 3

stdout:
TODO
hi from assert
(Expr)   <Expr 0x7f16ecceed88>

value
(Bool)   true
(Bool)   true
(Str)   "default fail message"
OK
hi from assert
(Expr)   <Expr 0x7f16ecceef38>

value
(Bool)   false
(Bool)   false
(Str)   "default fail message"
stderr:
      var m = evalExpr(fail_message)
                       ^~~~~~~~~~~~
stdlib/testing.ysh:39: fatal: Arg 1 should be a Expr, got Str
ysh_ALT2 assert builtin

[ysh_ALT stdout] Expected '', got 'TODO\nhi from assert\n(Expr) <Expr 0x7f87512883c8>\n\nvalue\n(Bool) true\n(Bool) true\n(Str) "default fail message"\nOK\nhi from assert\n(Expr) <Expr 0x7f8751288548>\n\nvalue\n(Bool) false\n(Bool) false\n(Str) "default fail message"\n'
[ysh_ALT status] Expected 0, got 3

stdout:
TODO
hi from assert
(Expr)   <Expr 0x7f87512883c8>

value
(Bool)   true
(Bool)   true
(Str)   "default fail message"
OK
hi from assert
(Expr)   <Expr 0x7f8751288548>

value
(Bool)   false
(Bool)   false
(Str)   "default fail message"
stderr:
      var m = evalExpr(fail_message)
                       ^~~~~~~~~~~~
stdlib/testing.ysh:39: fatal: Arg 1 should be a Expr, got Str
ysh3 ysh --tool test file

[ysh status] Expected 0, got 1
[ysh stderr] Found 'Traceback (most recent'

stdout:
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 137, in AppBundleMain
    return shell.Main('ysh', arg_r, environ, login_shell, loader, readline)
  File "/home/uke/oil/core/shell.py", line 1104, in Main
    raise AssertionError('TODO')
AssertionError: TODO
  $SH --tool test mytest.ysh
  ^~~
[ stdin ]:7: errexit PID 36454: command.Simple failed with status 1
ysh_ALT3 ysh --tool test file

[ysh_ALT status] Expected 0, got 1
[ysh_ALT stderr] Found 'Traceback (most recent'

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/uke/oil/bin/oil.py", line 34, in _cpython_main_hook
    sys.exit(oils_for_unix.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 137, in AppBundleMain
    return shell.Main('ysh', arg_r, environ, login_shell, loader, readline)
  File "/home/uke/oil/core/shell.py", line 1104, in Main
    raise AssertionError('TODO')
AssertionError: TODO
FATAL: couldn't import from app bundle '/home/uke/oil/_tmp/oil-tar-test/oil-0.22.0/_bin/ysh' (1)
Stripping the oil.ovm binary may cause this error.
See https://github.com/oilshell/oil/issues/47
  $SH --tool test mytest.ysh
  ^~~
[ stdin ]:7: errexit PID 36461: command.Simple failed with status 1
ysh4 Describe Prototype

[ysh stdout] Expected 'TODO\n', got 'TODO\ndescribe\n'

stdout:
TODO
describe
stderr:
ysh_ALT4 Describe Prototype

[ysh_ALT stdout] Expected 'TODO\n', got 'TODO\ndescribe\n'

stdout:
TODO
describe
stderr: