Results for ysh-array.test.sh

statusyshysh-cpp
pass 20
FAIL 13
total33
caseyshysh-cppdescription
0pass FAIL basic array
details
1pass FAIL string array with command sub, varsub, etc.
details
2FAIL FAIL printing type of array with pp and =
detailsdetails
2 passed, 0 OK, 0 not implemented, 0 BUG, 4 failed, 0 timeouts, 0 cases skipped

Details on runs that didn't PASS

ysh-cpp0 basic array

[ysh-cpp stdout] Expected 'len=3\n', got 'len=\n'

stdout:
len=
stderr:
ysh-cpp1 string array with command sub, varsub, etc.

[ysh-cpp stdout] Expected 'len=4\n1\nhi\nsq\ndq 1\n', got 'len=\n'
[ysh-cpp status] Expected 0, got 1

stdout:
len=
stderr:
  write @a
        ^~
[ stdin ]:6: fatal: Can't splice 'a'
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(StrArray) ['true']\nempty = (Cell exported:F readonly:F nameref:F val:(value.MaybeStrArray strs:[]))\n(StrArray) []\n"

stdout:
b = (Cell exported:F readonly:F nameref:F val:(value.MaybeStrArray strs:[true]))
(StrArray)   ['true']
empty = (Cell exported:F readonly:F nameref:F val:(value.MaybeStrArray strs:[]))
(StrArray)   []
stderr:
ysh-cpp2 printing type of array with pp and =

[ysh-cpp stdout] Expected 'Array[Bool]\nArray[???] # what should this be?\n' Got ''
[ysh-cpp status] Expected 0, got 1

stdout:
stderr: 
  pp cell b
          ^
[ stdin ]:2: Couldn't find a variable named 'b'
  pp cell b
  ^~
[ stdin ]:2: errexit PID 22429: command.Simple failed with status 1