Results for ysh-array.test.sh

statusysh
pass 2
FAIL 2
total4
caseyshdescription
0pass basic array
1pass string array with command sub, varsub, etc.
2FAIL printing type of array with pp and =
details
3FAIL splice and stringify array
details
2 passed, 0 OK, 0 not implemented, 0 BUG, 2 failed, 0 timeouts, 0 cases skipped
2 failed under osh

Details on runs that didn't PASS

ysh2 printing type of array with pp and =

[ysh stdout] Expected 'Array[Bool]\nArray[???] # what should this be?\n' Got "b = (Cell exported:F readonly:F nameref:F val:(value.List items:[(value.Str s:true)]))\n(List) ['true']\nempty = (Cell exported:F readonly:F nameref:F val:(value.List items:[]))\n(List) []\n"

stdout:
b = (Cell exported:F readonly:F nameref:F val:(value.List items:[(value.Str s:true)]))
(List)   ['true']
empty = (Cell exported:F readonly:F nameref:F val:(value.List items:[]))
(List)   []
stderr:
ysh3 splice and stringify array

[ysh stdout] Expected "['a b', 'c']\n2023-06 TODO: should fail\n", got ''
[ysh status] Expected 0, got 3

stdout:
stderr: 
  argv.py "${x[@]}"  # should work
           ^~
[ stdin ]:3: fatal: Invalid type value.List: Can't substitute into word