Results for ysh-word-eval.test.sh

statusoshosh_ALT
pass 106
FAIL 15
total1111
caseoshosh_ALTdescription
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
4pass FAIL echo $[f(x)] for various types
details
5pass FAIL echo $f (x) with space is runtime error
details
6pass FAIL echo @f (x) with space is runtime error
details
7pass pass echo $x for various types
8pass pass Wrong sigil with $range() is runtime error
9FAIL FAIL Serializing type in a list
detailsdetails
10pass FAIL Wrong sigil @[max(3, 4)]
details
16 passed, 0 OK, 0 not implemented, 0 BUG, 1 failed, 0 timeouts, 0 cases skipped
1 failed under osh

Details on runs that didn't PASS

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

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

stdout:
stderr: 
  source $LIB_YSH/math.ysh
         ^~~~~~~~
[ stdin ]:3: 'source' failed: No builtin file 'stdlib/ysh/math.ysh'
  source $LIB_YSH/math.ysh
  ^~~~~~
[ stdin ]:3: errexit PID 44680: command.Simple failed with status 1
osh_ALT5 echo $f (x) with space is runtime error

[osh_ALT status] Expected 3, got 1

stdout:
stderr: 
  source $LIB_YSH/math.ysh
         ^~~~~~~~
[ stdin ]:3: 'source' failed: No builtin file 'stdlib/ysh/math.ysh'
  source $LIB_YSH/math.ysh
  ^~~~~~
[ stdin ]:3: errexit PID 44684: command.Simple failed with status 1
osh_ALT6 echo @f (x) with space is runtime error

[osh_ALT status] Expected 3, got 1

stdout:
stderr: 
  source $LIB_YSH/math.ysh
         ^~~~~~~~
[ stdin ]:3: 'source' failed: No builtin file 'stdlib/ysh/math.ysh'
  source $LIB_YSH/math.ysh
  ^~~~~~
[ stdin ]:3: errexit PID 44688: command.Simple failed with status 1
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_ALT9 Serializing type in a list

[osh_ALT status] Expected 3, got 1

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

[osh_ALT status] Expected 3, got 1

stdout:
stderr: 
  source $LIB_YSH/math.ysh
         ^~~~~~~~
[ stdin ]:3: 'source' failed: No builtin file 'stdlib/ysh/math.ysh'
  source $LIB_YSH/math.ysh
  ^~~~~~
[ stdin ]:3: errexit PID 44704: command.Simple failed with status 1