Results for ysh-stdlib-testing.test.sh

statusysh
FAIL 5
total5
caseyshdescription
0FAIL value.Expr test - positional test
details
1FAIL value.Expr test - named test
details
2FAIL assert builtin
details
3FAIL ysh --tool test file
details
4FAIL Describe Prototype
details
0 passed, 0 OK, 0 not implemented, 0 BUG, 5 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 0x7feb08ea5638>\n\nexpr in parens\nexpr\n(Expr) <Expr 0x7feb08ea5a28>\n\n'

stdout:
TODO
parens
expr
(Int)   43

brackets
expr
(Expr)   <Expr 0x7feb08ea5638>

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

stderr:
ysh1 value.Expr test - named test

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

stdout:
TODO
parens
n
(Int)   43

brackets
n
(Expr)   <Expr 0x7f711a082638>

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

no value
n
(Expr)   <Expr 0x7f711a0bb7a0>

stderr:
ysh2 assert builtin

[ysh stdout] Expected '', got 'TODO\nhi from assert\n(Expr) <Expr 0x7ffb63eae680>\n\nvalue\n(Bool) true\n(Bool) true\n(Str) "default fail message"\nOK\nhi from assert\n(Expr) <Expr 0x7ffb63eae5f0>\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 0x7ffb63eae680>

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

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 1102, in Main
    raise AssertionError('TODO')
AssertionError: TODO
  $SH --tool test mytest.ysh
  ^~~
[ stdin ]:7: errexit PID 36896: command.Simple failed with status 1
ysh4 Describe Prototype

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

stdout:
TODO
describe
stderr: