spec test index / oilshell.org
| status | ysh | |
| pass | 2 | |
| FAIL | 2 | |
| total | 4 | |
| case | ysh | description |
| 0 | pass | basic array |
| 1 | pass | string array with command sub, varsub, etc. |
| 2 | FAIL | printing type of array with pp and = |
| details | ||
| 3 | FAIL | splice and stringify array |
| details |
2 passed, 0 OK, 0 not implemented, 0 BUG, 2 failed, 0 timeouts, 0 cases skipped 2 failed under osh
| ysh | 2 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.List items:[(value.Str s:true)]))\n(List) ['true']\nempty = (Cell exported:F readonly:F nameref:F val:(value.List items:[]))\n(List) []\n" stdout: b = (Cell exported:F readonly:F nameref:F val:(value.List items:[(value.Str s:true)])) (List) ['true'] empty = (Cell exported:F readonly:F nameref:F val:(value.List items:[])) (List) []stderr: |
| ysh | 3 splice and stringify array [ysh stdout] Expected "['a b', 'c']\n2023-06 TODO: should fail\n", got '' [ysh status] Expected 0, got 3 stdout: stderr: argv.py "${x[@]}" # should work
^~~~~~~
[ stdin ]:3: fatal: Can't expand value.List into word
|