75 passed, 2 OK, 2 not implemented, 0 BUG, 2 failed, 0 timeouts, 0 cases skipped 2 failed under osh
| osh | 22 bash variable can have an associative array part and a string part stdout: 1 2 1 2 zerostderr: echo ${assoc[1]} ${assoc[2]} ${assoc}
^~~~~
[ stdin ]:8: fatal: Can't index string 'assoc' with integer
|
| osh-cpp | 22 bash variable can have an associative array part and a string part stdout: 1 2 1 2 zerostderr: echo ${assoc[1]} ${assoc[2]} ${assoc}
^~~~~
[ stdin ]:8: fatal: Can't index string 'assoc' with integer
|
| osh | 27 readonly associative array can't be modified stdout: stderr: A['x']=1 ^~ [ stdin ]:2: fatal: Can't assign to readonly associative array |
| osh-cpp | 27 readonly associative array can't be modified stdout: stderr: A['x']=1 ^~ [ stdin ]:2: fatal: Can't assign to readonly associative array |
| osh-cpp | 30 unset -v and assoc array [osh-cpp stdout] Expected 'len=1\nlen=0\nlen=1\nlen=0\nlen=1\nlen=0\n' Got 'len=1\nlen=0\nlen=1\nlen=0\nlen=1\nlen=1\n' stdout: len=1 len=0 len=1 len=0 len=1 len=1stderr: assoc[$(echo K)]
^
[ sh arith expr at ? ]:1
[??? no location ???] Invalid word while parsing command list
unset -v 'assoc[$(echo K)]'
^
[ stdin ]:21: 'unset' got invalid LHS expression
|
| osh | 31 nameref and assoc array [osh stdout] Expected 'values: val\nbefore val\nafter val2\nvalues: val2\n---\nbefore val2\nafter val3\nvalues: val3\n' Got 'values: val\nbefore A["K"]\nafter val2\nvalues: val\n---\nbefore A[$key]\nafter val3\nvalues: val\n' stdout: values: val before A["K"] after val2 values: val --- before A[$key] after val3 values: valstderr: |
| osh-cpp | 31 nameref and assoc array [osh-cpp stdout] Expected 'values: val\nbefore val\nafter val2\nvalues: val2\n---\nbefore val2\nafter val3\nvalues: val3\n' Got 'values: val\nbefore A["K"]\nafter val2\nvalues: val\n---\nbefore A[$key]\nafter val3\nvalues: val\n' stdout: values: val before A["K"] after val2 values: val --- before A[$key] after val3 values: valstderr: |
| osh | 37 test -v with dynamic parsing [osh stdout] Expected 'empty=0\nk=0\nnonexistent=1\n' Got 'empty=1\nk=1\nnonexistent=1\n' stdout: empty=1 k=1 nonexistent=1stderr: |
| osh-cpp | 37 test -v with dynamic parsing [osh-cpp stdout] Expected 'empty=0\nk=0\nnonexistent=1\n' Got 'empty=1\nk=1\nnonexistent=1\n' stdout: empty=1 k=1 nonexistent=1stderr: |