Results for regex.test.sh

statusoshosh_.pyosh_.cc
pass 262626
FAIL 222
total282828
caseoshosh_.pyosh_.ccdescription
0pass pass pass BASH_REMATCH
1pass pass pass Match is unanchored at both ends
2pass pass pass Failed match
3pass pass pass Regex quoted with \ -- preferred in bash
4pass pass pass Regex quoted with single quotes
5pass pass pass Regex quoted with double quotes
6pass pass pass Fix single quotes by storing in variable
7pass pass pass Fix single quotes by storing in variable
8pass pass pass Double quoting pat variable -- again bash doesn't like it.
9pass pass pass Mixing quoted and unquoted parts
10pass pass pass Regex with == and not =~ is parse error, different lexer mode required
11pass pass pass Omitting ( )
12pass pass pass Malformed regex
13FAIL FAIL FAIL Regex with char class containing space
detailsdetailsdetails
14FAIL FAIL FAIL Operators and space lose meaning inside ()
detailsdetailsdetails
15pass pass pass Regex with |
16pass pass pass Regex to match literal brackets []
17pass pass pass Regex to match literals . ^ $ etc.
18pass pass pass Unquoted { is a regex parse error
19pass pass pass Fatal error inside [[ =~ ]]
20pass pass pass Quoted { and +
21pass pass pass Escaped {
22pass pass pass Escaped { stored in variable first
23pass pass pass regex with ?
24pass pass pass regex with unprintable characters
25pass pass pass pattern $f(x) -- regression
26pass pass pass pattern a=(1)
27pass pass pass pattern @f(x)
78 passed, 0 OK, 0 not implemented, 0 BUG, 6 failed, 0 timeouts, 0 cases skipped
2 failed under osh

Details on runs that didn't PASS

osh13 Regex with char class containing space

[osh stdout] Expected 'true\n', got ''
[osh status] Expected 0, got 2

stdout:
stderr: 
  [[ 'ba ba ' =~ ([a b]+) ]] && echo true
                     ^
[ stdin ]:1: Expected ]]
osh_.py13 Regex with char class containing space

[osh_.py stdout] Expected 'true\n', got ''
[osh_.py status] Expected 0, got 2

stdout:
stderr: 
  [[ 'ba ba ' =~ ([a b]+) ]] && echo true
                     ^
[ stdin ]:1: Expected ]]
osh_.cc13 Regex with char class containing space

[osh_.cc stdout] Expected 'true\n', got ''
[osh_.cc status] Expected 0, got 2

stdout:
stderr: 
  [[ 'ba ba ' =~ ([a b]+) ]] && echo true
                     ^
[ stdin ]:1: Expected ]]
osh14 Operators and space lose meaning inside ()

[osh stdout] Expected 'true\n', got ''
[osh status] Expected 0, got 2

stdout:
stderr: 
  [[ '< >' =~ (< >) ]] && echo true
                 ^
[ stdin ]:1: Expected ]]
osh_.py14 Operators and space lose meaning inside ()

[osh_.py stdout] Expected 'true\n', got ''
[osh_.py status] Expected 0, got 2

stdout:
stderr: 
  [[ '< >' =~ (< >) ]] && echo true
                 ^
[ stdin ]:1: Expected ]]
osh_.cc14 Operators and space lose meaning inside ()

[osh_.cc stdout] Expected 'true\n', got ''
[osh_.cc status] Expected 0, got 2

stdout:
stderr: 
  [[ '< >' =~ (< >) ]] && echo true
                 ^
[ stdin ]:1: Expected ]]