Results for ysh-regex-bytes-chars.test.sh

statusosh
pass 14
FAIL 1
total15
caseoshdescription
0pass Match tab character with [\t]
1pass Match newline with [\n]
2pass ERE: 'dot' matches newline
3pass ERE: 'dot' matches code point represented with multiple bytes (mu = 0xce 0xbe)
4pass $'\xff' is disallowed in Eggex, because it's disallowed in YSH
5pass Match low ASCII with [\x01]
6pass Match low ASCII with \u{7f} - translates to valid ERE
7pass non-ASCII bytes must be singleton terms, e.g. b'\y7f\yff' is disallowed
8pass Bytes are denoted \y01 in Eggex char classes (not \x01)
9pass NUL byte can be expressed in Eggex, but not in ERE
10pass High bytes 0x80 0xff usually can't be matched - Eggex is UTF-8
11pass High bytes 0x80 0xff can be matched with plain ERE and LC_ALL=C
12pass Code points like \u{3bc} can be matched
13pass Code point ranges work in limited cases
14FAIL Max code point is disallowed at parse time
details
14 passed, 0 OK, 0 not implemented, 0 BUG, 1 failed, 0 timeouts, 0 cases skipped
1 failed under osh

Details on runs that didn't PASS

osh14 Max code point is disallowed at parse time

[osh stdout] Expected '(Bool) false\n(Bool) true\n\n(Bool) false\n(Bool) true\n' Got '<Eggex>\n<Eggex>\n'

stdout:
<Eggex>
<Eggex>
stderr: