Results for ysh-list.test.sh

statusysh
pass 10
FAIL 2
total12
caseyshdescription
0pass shell array :| a 'b c' |
1pass empty array and simple_word_eval (regression test)
2pass Empty array and assignment builtin (regression)
3pass Shell arrays support tilde detection, static globbing, brace detection
4FAIL Basic List, a[42] a['42'] allowed
details
5FAIL Mutate List entries, a[42] a['42'] allowed
details
6pass string array with command sub, varsub, etc.
7pass Can print type of List with pp
8pass splice and stringify array
9pass List->extend()
10pass List append()/extend() should return null
11pass List pop()
10 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

ysh4 Basic List, a[42] a['42'] allowed

[ysh stdout] Expected 'len=3\n(Str) "2"\n(Str) "3"\n', got 'len=3\n(Str) "2"\n'
[ysh status] Expected 3, got 1

stdout:
len=3
(Str)   "2"
stderr:
  pp test_ (x['2'])
             ^
[ stdin ]:6: fatal: Integer too big: 2
ysh5 Mutate List entries, a[42] a['42'] allowed

[ysh stdout] Expected '(List) ["2",1,"4"]\n(List) ["2",1,9]\n(List) ["2",1,99]\n' Got '(List) ["2",1,"4"]\n'
[ysh status] Expected 3, got 1

stdout:
(List)   ["2",1,"4"]
stderr:
  setvar a['2'] += 5
  ^~~~~~
[ stdin ]:6: fatal: Integer too big: 2