spec test index / oilshell.org
status | osh | osh_.py | osh_.cc | |
pass | 1 | 1 | 1 | |
FAIL | 3 | 3 | 3 | |
total | 4 | 4 | 4 | |
case | osh | osh_.py | osh_.cc | description |
0 | FAIL | FAIL | FAIL | declare -i |
details | details | details | ||
1 | pass | pass | pass | append in arith context |
2 | FAIL | FAIL | FAIL | declare array vs. string: mixing -a +a and () '' |
details | details | details | ||
3 | FAIL | FAIL | FAIL | declare array vs. associative array |
details | details | details |
3 passed, 0 OK, 0 not implemented, 0 BUG, 9 failed, 0 timeouts, 0 cases skipped 3 failed under osh
osh | 0 declare -i [osh stdout] Expected '1 2 |3|2\n', got '1 2 |1 2 |x 2 \n' stdout: 1 2 |1 2 |x 2stderr: declare -i i ^~ [ stdin ]:4: 'declare' doesn't accept flag -i declare -i j ^~ [ stdin ]:7: 'declare' doesn't accept flag -i |
osh_.py | 0 declare -i [osh_.py stdout] Expected '1 2 |3|2\n', got '1 2 |1 2 |x 2 \n' stdout: 1 2 |1 2 |x 2stderr: declare -i i ^~ [ stdin ]:4: 'declare' doesn't accept flag -i declare -i j ^~ [ stdin ]:7: 'declare' doesn't accept flag -i |
osh_.cc | 0 declare -i [osh_.cc stdout] Expected '1 2 |3|2\n', got '1 2 |1 2 |x 2 \n' stdout: 1 2 |1 2 |x 2stderr: declare -i i ^~ [ stdin ]:4: 'declare' dynamic_fmt_dummy declare -i j ^~ [ stdin ]:7: 'declare' dynamic_fmt_dummy |
osh | 2 declare array vs. string: mixing -a +a and () '' [osh stdout] Expected "['1', '(2 3)', '4', '5', '6']\n", got "['', '']\n" stdout: ['', '']stderr: declare +a 'xyz1=1' ^ [ stdin ]:1: 'declare' doesn't accept option +a declare +a 'xyz2=(2 3)' ^ [ stdin ]:2: 'declare' doesn't accept option +a declare -a 'xyz3=4' ^ [ stdin ]:3: 'declare' Got -a but RHS isn't an array declare -a 'xyz4=(5 6)' ^ [ stdin ]:4: 'declare' Got -a but RHS isn't an array |
osh_.py | 2 declare array vs. string: mixing -a +a and () '' [osh_.py stdout] Expected "['1', '(2 3)', '4', '5', '6']\n", got "['', '']\n" stdout: ['', '']stderr: declare +a 'xyz1=1' ^ [ stdin ]:1: 'declare' doesn't accept option +a declare +a 'xyz2=(2 3)' ^ [ stdin ]:2: 'declare' doesn't accept option +a declare -a 'xyz3=4' ^ [ stdin ]:3: 'declare' Got -a but RHS isn't an array declare -a 'xyz4=(5 6)' ^ [ stdin ]:4: 'declare' Got -a but RHS isn't an array |
osh_.cc | 2 declare array vs. string: mixing -a +a and () '' [osh_.cc stdout] Expected "['1', '(2 3)', '4', '5', '6']\n", got "(cmd_value.Argv argv:[argv.py '' ''] arg_spids:[34 36 42])\n" stdout: (cmd_value.Argv argv:[argv.py '' ''] arg_spids:[34 36 42])stderr: declare +a 'xyz1=1' ^ [ stdin ]:1: 'declare' dynamic_fmt_dummy declare +a 'xyz2=(2 3)' ^ [ stdin ]:2: 'declare' dynamic_fmt_dummy declare -a 'xyz3=4' ^ [ stdin ]:3: 'declare' Got -a but RHS isn't an array declare -a 'xyz4=(5 6)' ^ [ stdin ]:4: 'declare' Got -a but RHS isn't an array Unhandled SimpleCommand |
osh | 3 declare array vs. associative array [osh stdout] Expected u"['1', '0', 'd']\n['2', 'a', 'c', 'b', 'd']\n", got "['0']\n['0']\n" stdout: ['0'] ['0']stderr: declare -a 'array=([a]=b [c]=d)' ^ [ stdin ]:1: 'declare' Got -a but RHS isn't an array declare -A 'assoc=([a]=b [c]=d)' ^ [ stdin ]:2: 'declare' Got -A but RHS isn't an associative array |
osh_.py | 3 declare array vs. associative array [osh_.py stdout] Expected u"['1', '0', 'd']\n['2', 'a', 'c', 'b', 'd']\n", got "['0']\n['0']\n" stdout: ['0'] ['0']stderr: declare -a 'array=([a]=b [c]=d)' ^ [ stdin ]:1: 'declare' Got -a but RHS isn't an array declare -A 'assoc=([a]=b [c]=d)' ^ [ stdin ]:2: 'declare' Got -A but RHS isn't an associative array |
osh_.cc | 3 declare array vs. associative array [osh_.cc stdout] Expected u"['1', '0', 'd']\n['2', 'a', 'c', 'b', 'd']\n", got '(cmd_value.Argv argv:[argv.py 0] arg_spids:[16 18])\n' [osh_.cc status] Expected 0, got -6 stdout: (cmd_value.Argv argv:[argv.py 0] arg_spids:[16 18])stderr: declare -a 'array=([a]=b [c]=d)' ^ [ stdin ]:1: 'declare' Got -a but RHS isn't an array Unhandled SimpleCommand osh_eval.dbg: mycpp/mylib.h:769: int len(const Dict<K, V> *) [K = Str *, V = Str *]: Assertion `0' failed. |