spec test index / oilshell.org
0 passed, 0 OK, 0 not implemented, 0 BUG, 39 failed, 0 timeouts, 0 cases skipped 39 failed under osh
ysh | 0 => operator for pure computation is allowed (may be mandatory later) [ysh stdout] Expected 'yes\nok\n', got '' [ysh status] Expected 0, got 1 [ysh stderr] Found 'Traceback (most recent' stdout: stderr: Traceback (most recent call last): File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module> import posix_ as posix ImportError: No module named posix_ |
ysh | 1 => can be used to chain free functions [ysh stdout] Expected 'K1/K2\nK1/K2\n', got '' [ysh status] Expected 0, got 1 [ysh stderr] Found 'Traceback (most recent' stdout: stderr: Traceback (most recent call last): File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module> import posix_ as posix ImportError: No module named posix_ |
ysh | 2 Str => startsWith(Str) and endsWith(Str), simple [ysh stdout] Expected 'true true\ntrue true\ntrue false\nfalse false\nfalse true\nfalse false\nfalse false\n' Got '' [ysh status] Expected 0, got 1 [ysh stderr] Found 'Traceback (most recent' stdout: stderr: Traceback (most recent call last): File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module> import posix_ as posix ImportError: No module named posix_ |
ysh | 3 Str => startsWith(Str) and endsWith(Str), matches bytes not runes [ysh stdout] Expected 'true true\ntrue false\nfalse true\ntrue true\n' Got '' [ysh status] Expected 0, got 1 [ysh stderr] Found 'Traceback (most recent' stdout: stderr: Traceback (most recent call last): File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module> import posix_ as posix ImportError: No module named posix_ |
ysh | 4 Str => startsWith(Str) and endsWith(Str), eggex [ysh stdout] Expected 'false false\ntrue true\ntrue true\nfalse false\ntrue true\nfalse false\n' Got '' [ysh status] Expected 0, got 1 [ysh stderr] Found 'Traceback (most recent' stdout: stderr: Traceback (most recent call last): File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module> import posix_ as posix ImportError: No module named posix_ |
ysh | 5 Str => startsWith(Str) and endsWith(Str), eggex with anchors [ysh stdout] Expected 'true false\nfalse false\nfalse false\nfalse false\nfalse true\nfalse false\n' Got '' [ysh status] Expected 0, got 1 [ysh stderr] Found 'Traceback (most recent' stdout: stderr: Traceback (most recent call last): File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module> import posix_ as posix ImportError: No module named posix_ |
ysh | 6 Str => startsWith(Str) and endsWith(Str), eggex matches bytes not runes [ysh stdout] Expected 'true true\ntrue true\ntrue true\ntrue true\n' Got '' [ysh status] Expected 0, got 1 [ysh stderr] Found 'Traceback (most recent' stdout: stderr: Traceback (most recent call last): File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module> import posix_ as posix ImportError: No module named posix_ |
ysh | 7 Str => startsWith(), no args [ysh status] Expected 3, got 1 [ysh stderr] Found 'Traceback (most recent' stdout: stderr: Traceback (most recent call last): File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module> import posix_ as posix ImportError: No module named posix_ |
ysh | 8 Str => startsWith(), too many args [ysh status] Expected 3, got 1 [ysh stderr] Found 'Traceback (most recent' stdout: stderr: Traceback (most recent call last): File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module> import posix_ as posix ImportError: No module named posix_ |
ysh | 9 Str => endsWith(), no args [ysh status] Expected 3, got 1 [ysh stderr] Found 'Traceback (most recent' stdout: stderr: Traceback (most recent call last): File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module> import posix_ as posix ImportError: No module named posix_ |
ysh | 10 Str => endsWith(), too many args [ysh status] Expected 3, got 1 [ysh stderr] Found 'Traceback (most recent' stdout: stderr: Traceback (most recent call last): File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module> import posix_ as posix ImportError: No module named posix_ |
ysh | 11 Str => trim*() with no args trims whitespace [ysh stdout] Expected '"", "", ""\n"", "", ""\n"mystr", "mystr", "mystr"\n"mystr", " mystr", "mystr"\n"mystr ", "mystr", "mystr"\n"mystr ", " mystr", "mystr"\n"my str ", " my str", "my str"\n' Got '' [ysh status] Expected 0, got 1 [ysh stderr] Found 'Traceback (most recent' stdout: stderr: Traceback (most recent call last): File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module> import posix_ as posix ImportError: No module named posix_ |
ysh | 12 Str => trim*() with a simple string pattern trims pattern [ysh stdout] Expected '"", "", ""\n" ", " ", " "\n"xy", "xy", "xy"\n"yz", "yz", "yz"\n"", "", ""\n"xyz", "xyz", ""\n"xyzxyz", "xyzxyz", "xyz"\n' Got '' [ysh status] Expected 0, got 1 [ysh stderr] Found 'Traceback (most recent' stdout: stderr: Traceback (most recent call last): File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module> import posix_ as posix ImportError: No module named posix_ |
ysh | 13 Str => trim*() with a string pattern trims bytes not runes [ysh stdout] Expected '"", "", ""\nb\'\\ya3\', "\xce\xa3", b\'\\ya3\'\n"\xce\xa3", b\'\\yce\', b\'\\yce\'\n' Got '' [ysh status] Expected 0, got 1 [ysh stderr] Found 'Traceback (most recent' stdout: stderr: Traceback (most recent call last): File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module> import posix_ as posix ImportError: No module named posix_ |
ysh | 14 Str => trim*() with an eggex pattern trims pattern [ysh stdout] Expected '"", "", ""\n" ", " ", " "\n"xy", "xy", "xy"\n"yz", "yz", "yz"\n"", "", ""\n"xyz", "xyz", ""\n"xyzxyz", "xyzxyz", "xyz"\n"abcxyz", "xyzabc", "abc"\n"abcxyz", "xyzabcxyz", "abcxyz"\n"xyzabcxyz", "xyzabc", "xyzabc"\n"abc123", "123abc", "abc"\n' Got '' [ysh status] Expected 0, got 1 [ysh stderr] Found 'Traceback (most recent' stdout: stderr: Traceback (most recent call last): File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module> import posix_ as posix ImportError: No module named posix_ |
ysh | 15 Str => trim*() with an eggex pattern trims bytes not runes [ysh stdout] Expected 'b\'\\ya3\', b\'\\yce\', ""\nb\'\\ya3\', b\'\\yce\', ""\n"", "", ""\n"", "", ""\n' Got '' [ysh status] Expected 0, got 1 [ysh stderr] Found 'Traceback (most recent' stdout: stderr: Traceback (most recent call last): File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module> import posix_ as posix ImportError: No module named posix_ |
ysh | 16 Str => trim(), too many args [ysh status] Expected 3, got 1 [ysh stderr] Found 'Traceback (most recent' stdout: stderr: Traceback (most recent call last): File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module> import posix_ as posix ImportError: No module named posix_ |
ysh | 17 Str => trimStart(), too many args [ysh status] Expected 3, got 1 [ysh stderr] Found 'Traceback (most recent' stdout: stderr: Traceback (most recent call last): File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module> import posix_ as posix ImportError: No module named posix_ |
ysh | 18 Str => trimEnd(), too many args [ysh status] Expected 3, got 1 [ysh stderr] Found 'Traceback (most recent' stdout: stderr: Traceback (most recent call last): File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module> import posix_ as posix ImportError: No module named posix_ |
ysh | 19 Str => trim(), unicode whitespace aware [ysh stdout] Expected 'YSH\n', got '' [ysh status] Expected 0, got 1 [ysh stderr] Found 'Traceback (most recent' stdout: stderr: Traceback (most recent call last): File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module> import posix_ as posix ImportError: No module named posix_ |
ysh | 20 Str => trim*(), unicode decoding errors [ysh stdout] Expected 'trim\nstatus=0\nstatus=3\nstatus=3\ntrimStart\nstatus=0\nstatus=3\ntrimEnd\nstatus=0\nstatus=3\n' Got '' [ysh status] Expected 0, got 1 [ysh stderr] Found 'Traceback (most recent' stdout: stderr: Traceback (most recent call last): File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module> import posix_ as posix ImportError: No module named posix_ |
ysh | 21 Str => trimStart(), unicode decoding error types [ysh stdout] Expected 'status=3\nstatus=3\nstatus=3\nstatus=3\nstatus=3\n' Got '' [ysh status] Expected 0, got 1 [ysh stderr] Found 'Traceback (most recent' stdout: stderr: Traceback (most recent call last): File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module> import posix_ as posix ImportError: No module named posix_ |
ysh | 22 Str => trimEnd(), unicode decoding error types [ysh stdout] Expected 'status=3\nstatus=3\nstatus=3\nstatus=3\nstatus=3\n' Got '' [ysh status] Expected 0, got 1 [ysh stderr] Found 'Traceback (most recent' stdout: stderr: Traceback (most recent call last): File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module> import posix_ as posix ImportError: No module named posix_ |
ysh | 23 Str => trim*(), zero-codepoints are not NUL-terminators [ysh stdout] Expected '"\\u0000"\n"\\u0000 "\n" \\u0000"\n', got '' [ysh status] Expected 0, got 1 [ysh stderr] Found 'Traceback (most recent' stdout: stderr: Traceback (most recent call last): File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module> import posix_ as posix ImportError: No module named posix_ |
ysh | 24 Str => split(sep), non-empty str sep [ysh stdout] Expected '(List) ["a","b","c"]\n(List) ["","",""]\n(List) ["a","b","c<d"]\n(List) ["a","b","","c"]\n(List) []\n' Got '' [ysh status] Expected 0, got 1 [ysh stderr] Found 'Traceback (most recent' stdout: stderr: Traceback (most recent call last): File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module> import posix_ as posix ImportError: No module named posix_ |
ysh | 25 Str => split(sep), eggex sep [ysh stdout] Expected '(List) ["a","b","c"]\n(List) ["","",""]\n(List) ["a","b","c<d"]\n(List) ["a","b","cd"]\n(List) []\n' Got '' [ysh status] Expected 0, got 1 [ysh stderr] Found 'Traceback (most recent' stdout: stderr: Traceback (most recent call last): File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module> import posix_ as posix ImportError: No module named posix_ |
ysh | 26 Str => split(sep, count), non-empty str sep [ysh stdout] Expected '(List) ["a","b","c"]\n(List) ["a","b","c"]\n(List) ["","a"]\n(List) ["a","b","c<d"]\n(List) ["a","b",";c"]\n(List) []\n(List) ["a,b,c"]\n(List) []\n' Got '' [ysh status] Expected 0, got 1 [ysh stderr] Found 'Traceback (most recent' stdout: stderr: Traceback (most recent call last): File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module> import posix_ as posix ImportError: No module named posix_ |
ysh | 27 Str => split(sep, count), eggex sep [ysh stdout] Expected '(List) ["a","b","c"]\n(List) ["","a"]\n(List) ["a","b","c<d"]\n(List) ["a b c"]\n(List) []\n' Got '' [ysh status] Expected 0, got 1 [ysh stderr] Found 'Traceback (most recent' stdout: stderr: Traceback (most recent call last): File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module> import posix_ as posix ImportError: No module named posix_ |
ysh | 28 Str => split(), usage errors [ysh stdout] Expected 'status=3\nstatus=3\nstatus=3\nstatus=3\n(List) ["",""]\nstatus=0\n' Got '' [ysh status] Expected 0, got 1 [ysh stderr] Found 'Traceback (most recent' stdout: stderr: Traceback (most recent call last): File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module> import posix_ as posix ImportError: No module named posix_ |
ysh | 29 Str => split(), non-ascii [ysh stdout] Expected '(List) ["\xf0\x9f\x8c\x9e","\xf0\x9f\x8c\x9e","\xf0\x9f\x8c\x9e"]\n(List) ["\xf0\x9f\x8c\x9e","\xf0\x9f\x8c\x9e","\xf0\x9f\x8c\x9e"]\n' Got '' [ysh status] Expected 0, got 1 [ysh stderr] Found 'Traceback (most recent' stdout: stderr: Traceback (most recent call last): File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module> import posix_ as posix ImportError: No module named posix_ |
ysh | 30 Dict => values() [ysh stdout] Expected '(List) ["bonjour","ami","chat"]\n', got '' [ysh status] Expected 0, got 1 [ysh stderr] Found 'Traceback (most recent' stdout: stderr: Traceback (most recent call last): File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module> import posix_ as posix ImportError: No module named posix_ |
ysh | 31 Dict -> erase() [ysh stdout] Expected '(Dict) {"title":"The Histories"}\n(Dict) {"title":"The Histories"}\n' Got '' [ysh status] Expected 0, got 1 [ysh stderr] Found 'Traceback (most recent' stdout: stderr: Traceback (most recent call last): File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module> import posix_ as posix ImportError: No module named posix_ |
ysh | 32 Dict -> get() [ysh stdout] Expected '(Str) "Hitchhiker\'s Guide"\n(Int) 1979\n(Str) ""\n' Got '' [ysh status] Expected 0, got 1 [ysh stderr] Found 'Traceback (most recent' stdout: stderr: Traceback (most recent call last): File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module> import posix_ as posix ImportError: No module named posix_ |
ysh | 33 Separation of -> attr and () calling [ysh stdout] Expected '(Bool) true\n', got '' [ysh status] Expected 0, got 1 [ysh stderr] Found 'Traceback (most recent' stdout: stderr: Traceback (most recent call last): File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module> import posix_ as posix ImportError: No module named posix_ |
ysh | 34 Bound methods, receiver value/reference semantics [ysh stdout] Expected '(List) ["foo"]\n(List) ["foo","baz"]\n(Bool) true\n(Bool) true\n' Got '' [ysh status] Expected 0, got 1 [ysh stderr] Found 'Traceback (most recent' stdout: stderr: Traceback (most recent call last): File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module> import posix_ as posix ImportError: No module named posix_ |
ysh | 35 List => indexOf() [ysh stdout] Expected '-1\n0\n1\n3\n', got '' [ysh status] Expected 0, got 1 [ysh stderr] Found 'Traceback (most recent' stdout: stderr: Traceback (most recent call last): File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module> import posix_ as posix ImportError: No module named posix_ |
ysh | 36 List => join() [ysh stdout] Expected '"123"\n"1 2 3"\n"1, 2, 3"\nfailed with status 3\n' Got '' [ysh status] Expected 0, got 1 [ysh stderr] Found 'Traceback (most recent' stdout: stderr: Traceback (most recent call last): File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module> import posix_ as posix ImportError: No module named posix_ |
ysh | 37 List->reverse() [ysh stdout] Expected '(List) []\n(List) [0]\n(List) [3,1,2]\n(List) ["world","hello"]\n' Got '' [ysh status] Expected 0, got 1 [ysh stderr] Found 'Traceback (most recent' stdout: stderr: Traceback (most recent call last): File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module> import posix_ as posix ImportError: No module named posix_ |
ysh | 38 List->reverse() from iterator [ysh stdout] Expected '2\n1\n0\n', got '' [ysh status] Expected 0, got 1 [ysh stderr] Found 'Traceback (most recent' stdout: stderr: Traceback (most recent call last): File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module> import posix_ as posix ImportError: No module named posix_ |