spec test index / oilshell.org
| status | osh | osh_.py | osh_.cc | |
| pass | 9 | 9 | 9 | |
| ok | 2 | 2 | 2 | |
| total | 11 | 11 | 11 | |
| case | osh | osh_.py | osh_.cc | description |
| 0 | pass | pass | pass | Append string to string |
| 1 | pass | pass | pass | Append array to array |
| 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 | pass | Append string to array element |
| 5 | pass | pass | pass | Append to last element |
| 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 | pass | Append to nonexistent array is allowed |
| 10 | pass | pass | pass | Append used like env prefix is a parse error |
27 passed, 6 OK, 0 not implemented, 0 BUG, 0 failed, 0 timeouts, 0 cases skipped
| 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
dumb_alloc:
gNumNew = 1727
gNumDelete = 116
gMemPos = 60256
gNumMalloc = 58
gNumFree = 0
gMemPos2 = 10112
|
| 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
dumb_alloc:
gNumNew = 1991
gNumDelete = 175
gMemPos = 69056
gNumMalloc = 91
gNumFree = 0
gMemPos2 = 10640
|