spec test index / oilshell.org
status | ysh | ysh_ALT | |
pass | 10 | 10 | |
FAIL | 2 | 2 | |
total | 12 | 12 | |
case | ysh | ysh_ALT | description |
0 | pass | pass | shell array :| a 'b c' | |
1 | pass | pass | empty array and simple_word_eval (regression test) |
2 | pass | pass | Empty array and assignment builtin (regression) |
3 | pass | pass | Shell arrays support tilde detection, static globbing, brace detection |
4 | FAIL | FAIL | Basic List, a[42] a['42'] allowed |
details | details | ||
5 | FAIL | FAIL | Mutate List entries, a[42] a['42'] allowed |
details | details | ||
6 | pass | pass | string array with command sub, varsub, etc. |
7 | pass | pass | Can print type of List with pp |
8 | pass | pass | splice and stringify array |
9 | pass | pass | List->extend() |
10 | pass | pass | List append()/extend() should return null |
11 | pass | pass | List pop() |
20 passed, 0 OK, 0 not implemented, 0 BUG, 4 failed, 0 timeouts, 0 cases skipped 2 failed under osh
ysh | 4 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_ALT | 4 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 |
ysh | 5 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_ALT | 5 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 |