Results for ysh-methods.test.sh

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

Details on runs that didn't PASS

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 'true true\ntrue true\nfalse false\nfalse false\n'

stdout:
true true
true true
false false
false false
stderr:
ysh_ALT6 Str => startsWith(Str) and endsWith(Str), eggex matches bytes not runes

[ysh_ALT stdout] Expected 'true true\ntrue true\ntrue true\ntrue true\n' Got 'true true\ntrue true\nfalse false\nfalse false\n'

stdout:
true true
true true
false false
false false
stderr:
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 '"", "", ""\n"", "", ""\nb\'\\yce\', b\'\\yce\', b\'\\yce\'\nb\'\\yce\', b\'\\yce\', b\'\\yce\'\n'

stdout:
"", "", ""
"", "", ""
b'\yce', b'\yce', b'\yce'
b'\yce', b'\yce', b'\yce'
stderr:
ysh_ALT15 Str => trim*() with an eggex pattern trims bytes not runes

[ysh_ALT stdout] Expected 'b\'\\ya3\', b\'\\yce\', ""\nb\'\\ya3\', b\'\\yce\', ""\n"", "", ""\n"", "", ""\n' Got '"", "", ""\n"", "", ""\nb\'\\yce\', b\'\\yce\', b\'\\yce\'\nb\'\\yce\', b\'\\yce\', b\'\\yce\'\n'

stdout:
"", "", ""
"", "", ""
b'\yce', b'\yce', b'\yce'
b'\yce', b'\yce', b'\yce'
stderr: