Results for var-op-patsub.test.sh

statusoshosh_.pyosh_.cc
pass 212119
N-I 111
FAIL 224
total242424
caseoshosh_.pyosh_.ccdescription
0pass pass pass Pattern replacement
1pass pass pass Pattern replacement on unset variable
2pass pass pass Global Pattern replacement with /
3pass pass pass Left Anchored Pattern replacement with #
4pass pass pass Right Anchored Pattern replacement with %
5pass pass pass Replace fixed strings
6pass pass pass Replace is longest match
7pass pass FAIL Replace char class
details
8pass pass pass Replace hard glob
9pass pass pass Pattern replacement ${v/} is not valid
10pass pass pass Pattern replacement ${v//} is not valid
11pass pass pass ${v/a} is the same as ${v/a/} -- no replacement string
12pass pass pass Replacement with special chars (bug fix)
13pass pass pass Replace backslash
14pass pass pass Replace right ]
15pass pass pass Substitute glob characters in pattern, quoted and unquoted
16pass pass pass Substitute one unicode character (UTF-8)
17FAIL FAIL FAIL Can't substitute one unicode character when LANG=C
detailsdetailsdetails
18pass pass pass ${x/^} regression
19pass pass pass \(\) in pattern (regression)
20N-I N-I N-I Extended globs! (not supported in Oil)
detailsdetailsdetails
21pass pass FAIL patsub with single quotes and hyphen in character class (regression)
details
22FAIL FAIL FAIL patsub with [^]]
detailsdetailsdetails
23pass pass pass patsub syntax error
61 passed, 0 OK, 3 not implemented, 0 BUG, 8 failed, 0 timeouts, 0 cases skipped
2 failed under osh

Details on runs that didn't PASS

osh_.cc7 Replace char class

[osh_.cc status] Expected 0, got -6

stdout:
yy_yy_yy xx-xx-xx
stderr:
getline() error: Invalid or incomplete multibyte or wide character
terminate called after throwing an instance of 'AssertionError*'
osh17 Can't substitute one unicode character when LANG=C

[osh stdout] Expected '_\xce\xbc_ and _\xce\xbc_\n_\xce\xbc_ and _\xce\xbc_\n_\xce\xbc_ and _\xce\xbc_\n', got 'foo and foo\nfoo and _\xce\xbc_\n_\xce\xbc_ and foo\n'

stdout:
foo and foo
foo and _μ_
_μ_ and foo
stderr:
osh_.py17 Can't substitute one unicode character when LANG=C

[osh_.py stdout] Expected '_\xce\xbc_ and _\xce\xbc_\n_\xce\xbc_ and _\xce\xbc_\n_\xce\xbc_ and _\xce\xbc_\n', got 'foo and foo\nfoo and _\xce\xbc_\n_\xce\xbc_ and foo\n'

stdout:
foo and foo
foo and _μ_
_μ_ and foo
stderr:
osh_.cc17 Can't substitute one unicode character when LANG=C

[osh_.cc stdout] Expected '_\xce\xbc_ and _\xce\xbc_\n_\xce\xbc_ and _\xce\xbc_\n_\xce\xbc_ and _\xce\xbc_\n', got 'foo and foo\nfoo and _\xce\xbc_\n_\xce\xbc_ and foo\n'

stdout:
foo and foo
foo and _μ_
_μ_ and foo
stderr:
osh20 Extended globs! (not supported in Oil)

stdout:
ext foo()
ext foo()
stderr:
osh_.py20 Extended globs! (not supported in Oil)

stdout:
ext foo()
ext foo()
stderr:
osh_.cc20 Extended globs! (not supported in Oil)

stdout:
ext foo()
ext foo()
stderr:
osh_.cc21 patsub with single quotes and hyphen in character class (regression)

[osh_.cc status] Expected 0, got -6

stdout:
++--.,<>[]
stderr:
getline() error: Invalid or incomplete multibyte or wide character
terminate called after throwing an instance of 'AssertionError*'
osh22 patsub with [^]]

[osh stdout] Expected 'ab^cd^\n', got 'zzzzzz\n'

stdout:
zzzzzz
stderr:
osh_.py22 patsub with [^]]

[osh_.py stdout] Expected 'ab^cd^\n', got 'zzzzzz\n'

stdout:
zzzzzz
stderr:
osh_.cc22 patsub with [^]]

[osh_.cc stdout] Expected 'ab^cd^\n', got 'zzzzzz\n'
[osh_.cc status] Expected 0, got -6

stdout:
zzzzzz
stderr:
getline() error: Invalid or incomplete multibyte or wide character
terminate called after throwing an instance of 'AssertionError*'