Results for ysh-methods.test.sh

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