Results for ysh-methods.test.sh

statusysh
pass 37
FAIL 2
total39
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 Str => split(sep), non-empty str sep
25pass Str => split(sep), eggex sep
26pass Str => split(sep, count), non-empty str sep
27pass Str => split(sep, count), eggex sep
28pass Str => split(), usage errors
29pass Str => split(), non-ascii
30pass Dict => values()
31pass Dict -> erase()
32pass Dict -> get()
33pass Separation of -> attr and () calling
34pass Bound methods, receiver value/reference semantics
35pass List => indexOf()
36pass List => join()
37pass List->reverse()
38pass List->reverse() from iterator
37 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: