6 use Test::More tests => 6;
10 my $rw = Regexp::Wildcards->new(do => [ qw/jokers brackets groups/ ]);
12 is($rw->convert('a(?)b'), 'a(.)b', 'groups: single');
13 is($rw->convert('a(*)b'), 'a(.*)b', 'groups: any');
14 is($rw->convert('(a),(b)'), '(a)\\,(b)', 'groups: commas');
15 is($rw->convert('a({x,y})b'), 'a((?:x|y))b', 'groups: brackets');
16 is($rw->convert('a({x,(y?),{z,(t*u)}})b'), 'a((?:x|(y.)|(?:z|(t.*u))))b',
18 is($rw->convert('(a*\\(b?\\))'), '(a.*\\(b.\\))', 'groups: escape');