spec test index / oilshell.org
52 passed, 6 OK, 0 not implemented, 0 BUG, 14 failed, 0 timeouts, 0 cases skipped
osh | 3 Unquoted with array as default value stdout: ['Xx1 2', '3 4xX'] ['Xx1', '2', '3', '4xX']stderr: |
osh_.py | 3 Unquoted with array as default value stdout: ['Xx1 2', '3 4xX'] ['Xx1', '2', '3', '4xX']stderr: |
osh_.cc | 3 Unquoted with array as default value [osh_.cc stdout] Expected "['Xx1 2', '3 4xX']\n['Xx1', '2', '3', '4xX']\n", got '' [osh_.cc status] Expected 0, got -11 stdout: stderr: set 4 |
osh | 4 Quoted with array as default value stdout: ['Xx1 2', '3 4xX'] ['Xx1 2 3 4xX']stderr: |
osh_.py | 4 Quoted with array as default value stdout: ['Xx1 2', '3 4xX'] ['Xx1 2 3 4xX']stderr: |
osh_.cc | 4 Quoted with array as default value [osh_.cc stdout] Expected "['Xx1 2', '3 4xX']\n['Xx1 2 3 4xX']\n", got '' [osh_.cc status] Expected 0, got -11 stdout: stderr: set 4 |
osh | 5 Assign default with array stdout: ['Xx1 2', '3 4xX'] ['x1 2 3 4x']stderr: |
osh_.py | 5 Assign default with array stdout: ['Xx1 2', '3 4xX'] ['x1 2 3 4x']stderr: |
osh_.cc | 5 Assign default with array [osh_.cc stdout] Expected "['Xx1 2', '3 4xX']\n['x1 2 3 4x']\n", got '' [osh_.cc status] Expected 0, got -11 stdout: stderr: set 4 |
osh_.cc | 6 Assign default value when empty [osh_.cc stdout] Expected 'is empty\n', got '(cmd_value.Argv argv:[is empty] arg_spids:[4 4])\nis empty\n' stdout: (cmd_value.Argv argv:[is empty] arg_spids:[4 4]) is emptystderr: Unhandled SimpleCommand |
osh_.cc | 7 Assign default value when unset [osh_.cc stdout] Expected 'is unset\n', got '(cmd_value.Argv argv:[is unset] arg_spids:[0 0])\nis unset\n' stdout: (cmd_value.Argv argv:[is unset] arg_spids:[0 0]) is unsetstderr: Unhandled SimpleCommand |
osh_.cc | 10 "${x+foo}" quoted (regression) [osh_.cc stdout] Expected "['', '=', 'set']\n", got "(cmd_value.Argv argv:[argv.py '' '=' set] arg_spids:[0 2 10 12])\n" stdout: (cmd_value.Argv argv:[argv.py '' '=' set] arg_spids:[0 2 10 12])stderr: Unhandled SimpleCommand |
osh_.cc | 11 ${v+foo} and ${v:+foo} when set -u [osh_.cc stdout] Expected 'v=foo\nv=foo\nv=\nv=\n', got 'v=foo\nv=foo\nv=foo\nv=foo\n' stdout: v=foo v=foo v=foo v=foostderr: set 2 |
osh_.cc | 12 ${v-foo} and ${v:-foo} when set -u [osh_.cc stdout] Expected 'v=v\nv=v\nv=foo\nv=foo\n', got 'v=v\nv=v\nv=v\nv=v\n' stdout: v=v v=v v=v v=vstderr: set 2 |
osh_.py | 13 array and - and + [osh_.py stdout] Expected "empty=minus\na1=\na1[0]=\na2= x\na3=3 4\n---\nempty=\na1=plus\na1[0]=plus\na2=plus\na3=plus\n---\nempty=\na1=plus\na2=plus\na3=plus\n---\n['minus']\n[]\n['']\n['plus']\n['']\n['plus']\n['', 'x']\n['plus']\n['3', '4']\n['plus']\n", got "['minus']\n[]\n['']\n['plus']\n['']\n['plus']\n['', 'x']\n['plus']\n['3', '4']\n['plus']\nempty=minus\na1=\na1[0]=\na2= x\na3=3 4\n---\nempty=\na1=plus\na1[0]=plus\na2=plus\na3=plus\n---\nempty=\na1=plus\na2=plus\na3=plus\n---\n" stdout: ['minus'] [] [''] ['plus'] [''] ['plus'] ['', 'x'] ['plus'] ['3', '4'] ['plus'] empty=minus a1= a1[0]= a2= x a3=3 4 --- empty= a1=plus a1[0]=plus a2=plus a3=plus --- empty= a1=plus a2=plus a3=plus ---stderr: |
osh_.cc | 13 array and - and + [osh_.cc stdout] Expected "empty=minus\na1=\na1[0]=\na2= x\na3=3 4\n---\nempty=\na1=plus\na1[0]=plus\na2=plus\na3=plus\n---\nempty=\na1=plus\na2=plus\na3=plus\n---\n['minus']\n[]\n['']\n['plus']\n['']\n['plus']\n['', 'x']\n['plus']\n['3', '4']\n['plus']\n", got '' [osh_.cc status] Expected 0, got -11 stdout: stderr: |
osh_.cc | 14 $@ and - and + [osh_.cc stdout] Expected 'argv=minus\nargv=\nargv=minus\nargv=\n', got '' [osh_.cc status] Expected 0, got -11 stdout: stderr: |
osh_.cc | 15 assoc array and - and + [osh_.cc stdout] Expected 'empty=minus\nempty=\nassoc=v\nassoc=plus\n---\nempty=minus\nempty=\nassoc=v\nassoc=plus\n', got '' [osh_.cc status] Expected 0, got -6 stdout: stderr: osh_eval.dbg: mycpp/mylib.h:769: int len(const Dict<K, V> *) [K = Str *, V = Str *]: Assertion `0' failed. |
osh_.cc | 20 array ${arr[0]=x} [osh_.cc stdout] Expected '0\n1\n', got '0\n' [osh_.cc status] Expected 0, got -6 stdout: 0stderr: terminate called after throwing an instance of 'std::out_of_range' what(): vector::_M_range_check: __n (which is 0) >= this->size() (which is 0) |
osh_.cc | 21 assoc array ${arr["k"]=x} [osh_.cc stdout] Expected '0\n1\n', got '' [osh_.cc status] Expected 0, got -6 stdout: stderr: osh_eval.dbg: mycpp/mylib.h:769: int len(const Dict<K, V> *) [K = Str *, V = Str *]: Assertion `0' failed. |