spec test index / oilshell.org
61 passed, 0 OK, 0 not implemented, 0 BUG, 26 failed, 0 timeouts, 0 cases skipped
osh_.py | 2 Remove const suffix is vectorized on user array [osh_.py stdout] Expected "['1', '2', '3']\n", got '' [osh_.py status] Expected 0, got 127 stdout: stderr: argv.py ${a[@]%a} ^~~~~~~ [ stdin ]:2: 'argv.py' not found |
osh_.cc | 2 Remove const suffix is vectorized on user array [osh_.cc stdout] Expected "['1', '2', '3']\n", got '' [osh_.cc status] Expected 0, got 127 stdout: stderr: argv.py ${a[@]%a} ^~~~~~~ [ stdin ]:2: 'argv.py' not found |
osh_.py | 3 Remove const suffix is vectorized on $@ array [osh_.py stdout] Expected "['1', '2', '3']\n", got '' [osh_.py status] Expected 0, got 127 stdout: stderr: argv.py ${@%a} ^~~~~~~ [ stdin ]:2: 'argv.py' not found |
osh_.cc | 3 Remove const suffix is vectorized on $@ array [osh_.cc stdout] Expected "['1', '2', '3']\n", got '' [osh_.cc status] Expected 0, got 127 stdout: stderr: argv.py ${@%a} ^~~~~~~ [ stdin ]:2: 'argv.py' not found |
osh_.cc | 10 Strip unicode prefix [osh_.cc stdout] Expected '-\n-\n-\n-\n', got '\xce\xbc-\n\xce\xbc-\n-\xce\xbc\n-\xce\xbc\n' stdout: μ- μ- -μ -μstderr: |
osh_.py | 11 Bug fix: Test that you can remove everything with glob [osh_.py stdout] Expected "['', '--x-', '-x--', '']\n", got '' [osh_.py status] Expected 0, got 127 stdout: stderr: argv.py "${s%%-*}" "${s%-*}" "${s#*-}" "${s##*-}" ^~~~~~~ [ stdin ]:2: 'argv.py' not found |
osh_.cc | 11 Bug fix: Test that you can remove everything with glob [osh_.cc stdout] Expected "['', '--x-', '-x--', '']\n", got '' [osh_.cc status] Expected 0, got 127 stdout: stderr: argv.py "${s%%-*}" "${s%-*}" "${s#*-}" "${s##*-}" ^~~~~~~ [ stdin ]:2: 'argv.py' not found |
osh_.py | 12 Test that you can remove everything with const [osh_.py stdout] Expected "['', '', '', '']\n['abcd', 'abcd', 'abcd', 'abcd']\n", got '' [osh_.py status] Expected 0, got 127 stdout: stderr: argv.py "${s%%abcd}" "${s%abcd}" "${s#abcd}" "${s##abcd}" ^~~~~~~ [ stdin ]:2: 'argv.py' not found argv.py "${s%%abcde}" "${s%abcde}" "${s#abcde}" "${s##abcde}" ^~~~~~~ [ stdin ]:3: 'argv.py' not found |
osh_.cc | 12 Test that you can remove everything with const [osh_.cc stdout] Expected "['', '', '', '']\n['abcd', 'abcd', 'abcd', 'abcd']\n", got '' [osh_.cc status] Expected 0, got 127 stdout: stderr: argv.py "${s%%abcd}" "${s%abcd}" "${s#abcd}" "${s##abcd}" ^~~~~~~ [ stdin ]:2: 'argv.py' not found argv.py "${s%%abcde}" "${s%abcde}" "${s#abcde}" "${s##abcde}" ^~~~~~~ [ stdin ]:3: 'argv.py' not found |
osh_.py | 13 Prepend using replacement of # [osh_.py stdout] Expected "['prefix-aa', 'prefix-bb', 'prefix-']\n", got '' [osh_.py status] Expected 0, got 127 stdout: stderr: argv.py ${array[@]/#/prefix-} ^~~~~~~ [ stdin ]:2: 'argv.py' not found |
osh_.cc | 13 Prepend using replacement of # [osh_.cc stdout] Expected "['prefix-aa', 'prefix-bb', 'prefix-']\n", got '' [osh_.cc status] Expected 0, got 127 stdout: stderr: argv.py ${array[@]/#/prefix-} ^~~~~~~ [ stdin ]:2: 'argv.py' not found |
osh_.py | 14 Append using replacement of % [osh_.py stdout] Expected "['aa-suffix', 'bb-suffix', '-suffix']\n", got '' [osh_.py status] Expected 0, got 127 stdout: stderr: argv.py ${array[@]/%/-suffix} ^~~~~~~ [ stdin ]:2: 'argv.py' not found |
osh_.cc | 14 Append using replacement of % [osh_.cc stdout] Expected "['aa-suffix', 'bb-suffix', '-suffix']\n", got '' [osh_.cc status] Expected 0, got 127 stdout: stderr: argv.py ${array[@]/%/-suffix} ^~~~~~~ [ stdin ]:2: 'argv.py' not found |
osh_.py | 19 Nested % and # operators (bug reported by Crestwave) [osh_.py stdout] Expected "['']\n['\\n']\n['\\n']\n['']\n['a']\n['a']\n", got '' [osh_.py status] Expected 0, got 127 stdout: stderr: argv.py "${var#?}" ^~~~~~~ [ stdin ]:2: 'argv.py' not found argv.py "${var%''}" ^~~~~~~ [ stdin ]:3: 'argv.py' not found argv.py "${var%"${var#?}"}" ^~~~~~~ [ stdin ]:4: 'argv.py' not found argv.py "${var#?}" ^~~~~~~ [ stdin ]:6: 'argv.py' not found argv.py "${var%''}" ^~~~~~~ [ stdin ]:7: 'argv.py' not found argv.py "${var%"${var#?}"}" ^~~~~~~ [ stdin ]:8: 'argv.py' not found |
osh_.cc | 19 Nested % and # operators (bug reported by Crestwave) [osh_.cc stdout] Expected "['']\n['\\n']\n['\\n']\n['']\n['a']\n['a']\n", got '' [osh_.cc status] Expected 0, got 127 stdout: stderr: argv.py "${var#?}" ^~~~~~~ [ stdin ]:2: 'argv.py' not found argv.py "${var%''}" ^~~~~~~ [ stdin ]:3: 'argv.py' not found argv.py "${var%"${var#?}"}" ^~~~~~~ [ stdin ]:4: 'argv.py' not found argv.py "${var#?}" ^~~~~~~ [ stdin ]:6: 'argv.py' not found argv.py "${var%''}" ^~~~~~~ [ stdin ]:7: 'argv.py' not found argv.py "${var%"${var#?}"}" ^~~~~~~ [ stdin ]:8: 'argv.py' not found |
osh_.py | 20 strip * (bug regression) [osh_.py stdout] Expected "['abc']\n['']\n['abc']\n['']\n", got '' [osh_.py status] Expected 0, got 127 stdout: stderr: argv.py "${x#*}" ^~~~~~~ [ stdin ]:2: 'argv.py' not found argv.py "${x##*}" ^~~~~~~ [ stdin ]:3: 'argv.py' not found argv.py "${x%*}" ^~~~~~~ [ stdin ]:4: 'argv.py' not found argv.py "${x%%*}" ^~~~~~~ [ stdin ]:5: 'argv.py' not found |
osh_.cc | 20 strip * (bug regression) [osh_.cc stdout] Expected "['abc']\n['']\n['abc']\n['']\n", got '' [osh_.cc status] Expected 0, got 127 stdout: stderr: argv.py "${x#*}" ^~~~~~~ [ stdin ]:2: 'argv.py' not found argv.py "${x##*}" ^~~~~~~ [ stdin ]:3: 'argv.py' not found argv.py "${x%*}" ^~~~~~~ [ stdin ]:4: 'argv.py' not found argv.py "${x%%*}" ^~~~~~~ [ stdin ]:5: 'argv.py' not found |
osh_.py | 21 strip ? [osh_.py stdout] Expected "['bc']\n['bc']\n['ab']\n['ab']\n", got '' [osh_.py status] Expected 0, got 127 stdout: stderr: argv.py "${x#?}" ^~~~~~~ [ stdin ]:2: 'argv.py' not found argv.py "${x##?}" ^~~~~~~ [ stdin ]:3: 'argv.py' not found argv.py "${x%?}" ^~~~~~~ [ stdin ]:4: 'argv.py' not found argv.py "${x%%?}" ^~~~~~~ [ stdin ]:5: 'argv.py' not found |
osh_.cc | 21 strip ? [osh_.cc stdout] Expected "['bc']\n['bc']\n['ab']\n['ab']\n", got '' [osh_.cc status] Expected 0, got 127 stdout: stderr: argv.py "${x#?}" ^~~~~~~ [ stdin ]:2: 'argv.py' not found argv.py "${x##?}" ^~~~~~~ [ stdin ]:3: 'argv.py' not found argv.py "${x%?}" ^~~~~~~ [ stdin ]:4: 'argv.py' not found argv.py "${x%%?}" ^~~~~~~ [ stdin ]:5: 'argv.py' not found |
osh_.py | 22 strip all [osh_.py stdout] Expected "['']\n['']\n['']\n['']\n", got '' [osh_.py status] Expected 0, got 127 stdout: stderr: argv.py "${x#abc}" ^~~~~~~ [ stdin ]:2: 'argv.py' not found argv.py "${x##abc}" ^~~~~~~ [ stdin ]:3: 'argv.py' not found argv.py "${x%abc}" ^~~~~~~ [ stdin ]:4: 'argv.py' not found argv.py "${x%%abc}" ^~~~~~~ [ stdin ]:5: 'argv.py' not found |
osh_.cc | 22 strip all [osh_.cc stdout] Expected "['']\n['']\n['']\n['']\n", got '' [osh_.cc status] Expected 0, got 127 stdout: stderr: argv.py "${x#abc}" ^~~~~~~ [ stdin ]:2: 'argv.py' not found argv.py "${x##abc}" ^~~~~~~ [ stdin ]:3: 'argv.py' not found argv.py "${x%abc}" ^~~~~~~ [ stdin ]:4: 'argv.py' not found argv.py "${x%%abc}" ^~~~~~~ [ stdin ]:5: 'argv.py' not found |
osh_.py | 23 strip none [osh_.py stdout] Expected "['abc']\n['abc']\n['abc']\n['abc']\n", got '' [osh_.py status] Expected 0, got 127 stdout: stderr: argv.py "${x#}" ^~~~~~~ [ stdin ]:2: 'argv.py' not found argv.py "${x##}" ^~~~~~~ [ stdin ]:3: 'argv.py' not found argv.py "${x%}" ^~~~~~~ [ stdin ]:4: 'argv.py' not found argv.py "${x%%}" ^~~~~~~ [ stdin ]:5: 'argv.py' not found |
osh_.cc | 23 strip none [osh_.cc stdout] Expected "['abc']\n['abc']\n['abc']\n['abc']\n", got '' [osh_.cc status] Expected 0, got 127 stdout: stderr: argv.py "${x#}" ^~~~~~~ [ stdin ]:2: 'argv.py' not found argv.py "${x##}" ^~~~~~~ [ stdin ]:3: 'argv.py' not found argv.py "${x%}" ^~~~~~~ [ stdin ]:4: 'argv.py' not found argv.py "${x%%}" ^~~~~~~ [ stdin ]:5: 'argv.py' not found |
osh_.cc | 24 strip all unicode [osh_.cc stdout] Expected '\n\n\n\n', got '\xce\xbcabc\xce\xbc\n\xce\xbcabc\xce\xbc\n\xce\xbcabc\xce\xbc\n\xce\xbcabc\xce\xbc\n' stdout: μabcμ μabcμ μabcμ μabcμstderr: |
osh_.py | 25 strip none unicode [osh_.py stdout] Expected "['\\xce\\xbcabc\\xce\\xbc']\n['\\xce\\xbcabc\\xce\\xbc']\n['\\xce\\xbcabc\\xce\\xbc']\n['\\xce\\xbcabc\\xce\\xbc']\n", got '' [osh_.py status] Expected 0, got 127 stdout: stderr: argv.py "${x#}" ^~~~~~~ [ stdin ]:2: 'argv.py' not found argv.py "${x##}" ^~~~~~~ [ stdin ]:3: 'argv.py' not found argv.py "${x%}" ^~~~~~~ [ stdin ]:4: 'argv.py' not found argv.py "${x%%}" ^~~~~~~ [ stdin ]:5: 'argv.py' not found |
osh_.cc | 25 strip none unicode [osh_.cc stdout] Expected "['\\xce\\xbcabc\\xce\\xbc']\n['\\xce\\xbcabc\\xce\\xbc']\n['\\xce\\xbcabc\\xce\\xbc']\n['\\xce\\xbcabc\\xce\\xbc']\n", got '' [osh_.cc status] Expected 0, got 127 stdout: stderr: argv.py "${x#}" ^~~~~~~ [ stdin ]:2: 'argv.py' not found argv.py "${x##}" ^~~~~~~ [ stdin ]:3: 'argv.py' not found argv.py "${x%}" ^~~~~~~ [ stdin ]:4: 'argv.py' not found argv.py "${x%%}" ^~~~~~~ [ stdin ]:5: 'argv.py' not found |