File: 06.matchrange.t

package info (click to toggle)
libre-engine-re2-perl 0.18%2Bds-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 440 kB
  • sloc: cpp: 270; perl: 80; makefile: 2; sh: 1
file content (10 lines) | stat: -rw-r--r-- 165 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
use strict;
use Test::More tests => 2;
use re::engine::RE2;

my $re = qr/^(?:a|b).*/;

my @range = $re->possible_match_range;
is $range[0], "a";
is $range[1], "c";