spec test index / oilshell.org
status | osh | osh_.py | osh_.cc | |
pass | 9 | 9 | 5 | |
ok | 2 | 2 | 2 | |
FAIL | 0 | 0 | 4 | |
total | 11 | 11 | 11 | |
case | osh | osh_.py | osh_.cc | description |
0 | pass | pass | pass | Append string to string |
1 | pass | pass | FAIL | Append array to array |
details | ||||
2 | pass | pass | pass | Append array to string should be an error |
3 | pass | pass | pass | Append string to array should be disallowed |
4 | pass | pass | FAIL | Append string to array element |
details | ||||
5 | pass | pass | FAIL | Append to last element |
details | ||||
6 | ok | ok | ok | Try to append list to element |
details | details | details | ||
7 | pass | pass | pass | Strings have value semantics, not reference semantics |
8 | ok | ok | ok | Append to nonexistent string |
details | details | details | ||
9 | pass | pass | FAIL | Append to nonexistent array is allowed |
details | ||||
10 | pass | pass | pass | Append used like env prefix is a parse error |
23 passed, 6 OK, 0 not implemented, 0 BUG, 4 failed, 0 timeouts, 0 cases skipped
osh_.cc | 1 Append array to array [osh_.cc stdout] Expected "['x', 'y', 't', 'u v']\n", got "(cmd_value.Argv argv:[argv.py x y t 'u v'] arg_spids:[17 19 19 19 19])\n" stdout: (cmd_value.Argv argv:[argv.py x y t 'u v'] arg_spids:[17 19 19 19 19])stderr: Unhandled SimpleCommand |
osh_.cc | 4 Append string to array element [osh_.cc stdout] Expected "['x', 'yz']\n", got '(cmd_value.Argv argv:[argv.py x yz] arg_spids:[15 17 17])\n' stdout: (cmd_value.Argv argv:[argv.py x yz] arg_spids:[15 17 17])stderr: Unhandled SimpleCommand |
osh_.cc | 5 Append to last element [osh_.cc stdout] Expected "['1', '2 3 4']\n", got "(cmd_value.Argv argv:[argv.py 1 '2 3 4'] arg_spids:[19 21 21])\n" stdout: (cmd_value.Argv argv:[argv.py 1 '2 3 4'] arg_spids:[19 21 21])stderr: Unhandled SimpleCommand |
osh | 6 Try to append list to element stdout: stderr: a[-1]+=(4 5) ^ [ stdin ]:2: Expected ) in function definition |
osh_.py | 6 Try to append list to element stdout: stderr: a[-1]+=(4 5) ^ [ stdin ]:2: Expected ) in function definition |
osh_.cc | 6 Try to append list to element stdout: stderr: a[-1]+=(4 5) ^ [ stdin ]:2: dynamic_fmt_dummy |
osh | 8 Append to nonexistent string stdout: stderr: local a+=a ^~~ [ stdin ]:2: fatal: += not allowed in assignment builtin |
osh_.py | 8 Append to nonexistent string stdout: stderr: local a+=a ^~~ [ stdin ]:2: fatal: += not allowed in assignment builtin |
osh_.cc | 8 Append to nonexistent string stdout: stderr: local a+=a ^~~~~ [ stdin ]:2: fatal: += not allowed in assignment builtin |
osh_.cc | 9 Append to nonexistent array is allowed [osh_.cc stdout] Expected "['c', 'd']\n", got '(cmd_value.Argv argv:[argv.py c d] arg_spids:[7 9 9])\n' stdout: (cmd_value.Argv argv:[argv.py c d] arg_spids:[7 9 9])stderr: Unhandled SimpleCommand |