status | osh | osh-cpp | |
pass | 8 | 7 | |
FAIL | 0 | 1 | |
total | 8 | 8 | |
case | osh | osh-cpp | description |
0 | pass | pass | [k1]=v1 (BashArray) |
1 | pass | pass | [k1]=v1 (BashAssoc) |
2 | pass | pass | [k1]=v1 looking like brace expansions (BashArray) |
3 | pass | pass | [k1]=v1 looking like brace expansions (BashAssoc) |
4 | pass | FAIL | BashArray cannot be changed to BashAssoc and vice versa |
details | |||
5 | pass | pass | s+=() with strict_array |
6 | pass | pass | declare -A s+=() with strict_array |
7 | pass | pass | assoc=(key value ...) is not allowed in the strict_array mode |
15 passed, 0 OK, 0 not implemented, 0 BUG, 0 failed, 0 timeouts, 0 cases skipped
osh-cpp | 4 BashArray cannot be changed to BashAssoc and vice versa [osh-cpp stdout] Expected "status=1\n['1', '2', '3', '4']\nstatus=1\n['x', 'y', 'z']\n" Got "status=1\n['1', '2', '3', '4']\nstatus=1\n" [osh-cpp status] Expected 0, got -6 stdout: status=1 ['1', '2', '3', '4'] status=1stderr: declare -A a=([a]=x [b]=y [c]=z) ^~ [ eval arg at line 2 of [ stdin ] ]:1 eval 'declare -A a=([a]=x [b]=y [c]=z)' ^~~~ [ stdin ]:2: fatal: Can't convert type BashArray into BashAssoc declare -a A=(1 2 3 4) ^~ [ eval arg at line 7 of [ stdin ] ]:1 eval 'declare -a A=(1 2 3 4)' ^~~~ [ stdin ]:7: fatal: Can't convert type BashAssoc into BashArray terminate called after throwing an instance of 'IndexError*' timeout: the monitored command dumped core |