File: 02-regexp-pattern_RE2_missing.t

package info (click to toggle)
libregexp-pattern-license-perl 3.11.2-1
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 1,580 kB
  • sloc: perl: 12,506; makefile: 2; sh: 1
file content (18 lines) | stat: -rw-r--r-- 343 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use Test2::V0;

use Test::Without::Module qw( re::engine::RE2 );

use Regexp::Pattern;

use Test::Regexp::Pattern;

plan 1;

my $OPTS = { engine => 'RE2' };

my $e = dies { re( "License::fsful", $OPTS ) };
like $e,
	qr/cannot use regexp engine "RE2": Module "re::engine::RE2" is not installed/,
	"call with engine RE2 -> dies";

done_testing;