Results for ysh-list.test.sh

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

[ysh_ALT stdout] Expected 'len=3\n(Str) "2"\n(Str) "3"\n', got 'len=3\n(Str) "2"\n'
[ysh_ALT 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
ysh_ALT5 Mutate List entries, a[42] a['42'] allowed

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

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