Results for ysh-word-eval.test.sh

statusosh
pass 6
FAIL 5
total11
caseoshdescription
0pass Splice in array
1pass Assoc array can't be spliced directly
2pass Can't splice string
3pass Can't splice undefined
4FAIL echo $[f(x)] for various types
details
5FAIL echo $f (x) with space is runtime error
details
6FAIL echo @f (x) with space is runtime error
details
7pass echo $x for various types
8pass Wrong sigil with $range() is runtime error
9FAIL Serializing type in a list
details
10FAIL Wrong sigil @[max(3, 4)]
details
6 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 41280: 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 41283: 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 41286: 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'
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 41298: command.Simple failed with status 2