Results for ysh-methods.test.sh

statusysh
FAIL 39
total39
caseyshdescription
0FAIL => operator for pure computation is allowed (may be mandatory later)
details
1FAIL => can be used to chain free functions
details
2FAIL Str => startsWith(Str) and endsWith(Str), simple
details
3FAIL Str => startsWith(Str) and endsWith(Str), matches bytes not runes
details
4FAIL Str => startsWith(Str) and endsWith(Str), eggex
details
5FAIL Str => startsWith(Str) and endsWith(Str), eggex with anchors
details
6FAIL Str => startsWith(Str) and endsWith(Str), eggex matches bytes not runes
details
7FAIL Str => startsWith(), no args
details
8FAIL Str => startsWith(), too many args
details
9FAIL Str => endsWith(), no args
details
10FAIL Str => endsWith(), too many args
details
11FAIL Str => trim*() with no args trims whitespace
details
12FAIL Str => trim*() with a simple string pattern trims pattern
details
13FAIL Str => trim*() with a string pattern trims bytes not runes
details
14FAIL Str => trim*() with an eggex pattern trims pattern
details
15FAIL Str => trim*() with an eggex pattern trims bytes not runes
details
16FAIL Str => trim(), too many args
details
17FAIL Str => trimStart(), too many args
details
18FAIL Str => trimEnd(), too many args
details
19FAIL Str => trim(), unicode whitespace aware
details
20FAIL Str => trim*(), unicode decoding errors
details
21FAIL Str => trimStart(), unicode decoding error types
details
22FAIL Str => trimEnd(), unicode decoding error types
details
23FAIL Str => trim*(), zero-codepoints are not NUL-terminators
details
24FAIL Str => split(sep), non-empty str sep
details
25FAIL Str => split(sep), eggex sep
details
26FAIL Str => split(sep, count), non-empty str sep
details
27FAIL Str => split(sep, count), eggex sep
details
28FAIL Str => split(), usage errors
details
29FAIL Str => split(), non-ascii
details
30FAIL Dict => values()
details
31FAIL Dict -> erase()
details
32FAIL Dict -> get()
details
33FAIL Separation of -> attr and () calling
details
34FAIL Bound methods, receiver value/reference semantics
details
35FAIL List => indexOf()
details
36FAIL List => join()
details
37FAIL List->reverse()
details
38FAIL List->reverse() from iterator
details
0 passed, 0 OK, 0 not implemented, 0 BUG, 39 failed, 0 timeouts, 0 cases skipped
39 failed under osh

Details on runs that didn't PASS

ysh0 => 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_
ysh1 => 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_
ysh2 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_
ysh3 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_
ysh4 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_
ysh5 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_
ysh6 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_
ysh7 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_
ysh8 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_
ysh9 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_
ysh10 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_
ysh11 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_
ysh12 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_
ysh13 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_
ysh14 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_
ysh15 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_
ysh16 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_
ysh17 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_
ysh18 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_
ysh19 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_
ysh20 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_
ysh21 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_
ysh22 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_
ysh23 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_
ysh24 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_
ysh25 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_
ysh26 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_
ysh27 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_
ysh28 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_
ysh29 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_
ysh30 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_
ysh31 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_
ysh32 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_
ysh33 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_
ysh34 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_
ysh35 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_
ysh36 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_
ysh37 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_
ysh38 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_