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.MaybeStrArray strs:[true]))\n(List) ['true']\nempty = (Cell exported:F readonly:F nameref:F val:(value.MaybeStrArray strs:[]))\n(List) []\n"

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

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

stdout:
['a b', 'c']
stderr:
  echo -$x-  # fails because it's not an array
        ^~
[ stdin ]:5: fatal: Array 'x' can't be referred to as a scalar (without @ or *)