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.MaybeStrArray strs:[true]))\n(List) ['true']\nempty = (Cell exported:F readonly:F nameref:F val:(value.MaybeStrArray strs:[]))\n(List) []\n" stdout: b = (Cell exported:F readonly:F nameref:F val:(value.MaybeStrArray strs:[true])) (List) ['true'] empty = (Cell exported:F readonly:F nameref:F val:(value.MaybeStrArray strs:[])) (List) []stderr: |
| ysh | 3 splice and stringify array [ysh stdout] Expected "['a b', 'c']\n2023-06 TODO: should fail\n", got "['a b', 'c']\n" [ysh status] Expected 0, got 1 stdout: ['a b', 'c']stderr: echo -$x- # fails because it's not an array
^~
[ stdin ]:5: fatal: Array 'x' can't be referred to as a scalar (without @ or *)
|