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