Results for ysh-word-eval.test.sh

statusoshosh-cpp
pass 66
FAIL 55
total1111
caseoshosh-cppdescription
0pass pass Splice in array
1pass pass Assoc array can't be spliced directly
2pass pass Can't splice string
3pass pass Can't splice undefined
4FAIL FAIL echo $[f(x)] for various types
detailsdetails
5FAIL FAIL echo $f (x) with space is runtime error
detailsdetails
6FAIL FAIL echo @f (x) with space is runtime error
detailsdetails
7pass pass echo $x for various types
8pass pass Wrong sigil with $range() is runtime error
9FAIL FAIL Serializing type in a list
detailsdetails
10FAIL FAIL Wrong sigil @[max(3, 4)]
detailsdetails
12 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

osh4 echo $[f(x)] for various types

[osh stdout] Expected 'bool true\nint 2\nfloat 3.14\nstr identity\n---\nbool expr true\nbool splice true\n' Got ''
[osh status] Expected 0, got 2

stdout:
stderr: 
    for i in (1 .. len(list)) {
                ^~
stdlib/ysh/math.ysh:23: Use 1..<5 for an open range, or 1..=5 for a closed range
  source $LIB_YSH/math.ysh
  ^~~~~~
[ stdin ]:3: errexit PID 35654: command.Simple failed with status 2
osh-cpp4 echo $[f(x)] for various types

[osh-cpp stdout] Expected 'bool true\nint 2\nfloat 3.14\nstr identity\n---\nbool expr true\nbool splice true\n' Got ''
[osh-cpp status] Expected 0, got 2

stdout:
stderr: 
    for i in (1 .. len(list)) {
                ^~
stdlib/ysh/math.ysh:23: Use 1..<5 for an open range, or 1..=5 for a closed range
  source $LIB_YSH/math.ysh
  ^~~~~~
[ stdin ]:3: errexit PID 35668: command.Simple failed with status 2
osh5 echo $f (x) with space is runtime error

[osh status] Expected 3, got 2

stdout:
stderr: 
    for i in (1 .. len(list)) {
                ^~
stdlib/ysh/math.ysh:23: Use 1..<5 for an open range, or 1..=5 for a closed range
  source $LIB_YSH/math.ysh
  ^~~~~~
[ stdin ]:3: errexit PID 35680: command.Simple failed with status 2
osh-cpp5 echo $f (x) with space is runtime error

[osh-cpp status] Expected 3, got 2

stdout:
stderr: 
    for i in (1 .. len(list)) {
                ^~
stdlib/ysh/math.ysh:23: Use 1..<5 for an open range, or 1..=5 for a closed range
  source $LIB_YSH/math.ysh
  ^~~~~~
[ stdin ]:3: errexit PID 35691: command.Simple failed with status 2
osh6 echo @f (x) with space is runtime error

[osh status] Expected 3, got 2

stdout:
stderr: 
    for i in (1 .. len(list)) {
                ^~
stdlib/ysh/math.ysh:23: Use 1..<5 for an open range, or 1..=5 for a closed range
  source $LIB_YSH/math.ysh
  ^~~~~~
[ stdin ]:3: errexit PID 35701: command.Simple failed with status 2
osh-cpp6 echo @f (x) with space is runtime error

[osh-cpp status] Expected 3, got 2

stdout:
stderr: 
    for i in (1 .. len(list)) {
                ^~
stdlib/ysh/math.ysh:23: Use 1..<5 for an open range, or 1..=5 for a closed range
  source $LIB_YSH/math.ysh
  ^~~~~~
[ stdin ]:3: errexit PID 35717: command.Simple failed with status 2
osh9 Serializing type in a list

[osh status] Expected 3, got 1

stdout:
3
true
___
stderr:
  var list2 = [List]
               ^~~~
[ stdin ]:9: fatal: Undefined variable 'List'
osh-cpp9 Serializing type in a list

[osh-cpp status] Expected 3, got 1

stdout:
3
true
___
stderr:
  var list2 = [List]
               ^~~~
[ stdin ]:9: fatal: Undefined variable 'List'
osh10 Wrong sigil @[max(3, 4)]

[osh status] Expected 3, got 2

stdout:
stderr: 
    for i in (1 .. len(list)) {
                ^~
stdlib/ysh/math.ysh:23: Use 1..<5 for an open range, or 1..=5 for a closed range
  source $LIB_YSH/math.ysh
  ^~~~~~
[ stdin ]:3: errexit PID 35801: command.Simple failed with status 2
osh-cpp10 Wrong sigil @[max(3, 4)]

[osh-cpp status] Expected 3, got 2

stdout:
stderr: 
    for i in (1 .. len(list)) {
                ^~
stdlib/ysh/math.ysh:23: Use 1..<5 for an open range, or 1..=5 for a closed range
  source $LIB_YSH/math.ysh
  ^~~~~~
[ stdin ]:3: errexit PID 35821: command.Simple failed with status 2