]> git.vpit.fr Git - perl/modules/re-engine-Plugin.git/blob - t/eval-exec.t
Importing re-engine-Plugin-0.01.tar.gz
[perl/modules/re-engine-Plugin.git] / t / eval-exec.t
1 =pod
2
3 Copy of F<t/eval-comp.t> that tests another callback sub.
4
5 =cut
6
7 use strict;
8
9 use Test::More tests => 1;
10
11 use re::engine::Plugin (
12     comp => sub {},
13     exec => sub { die "died at exec time" },
14 );
15
16 eval { 'oh' =~ /noes/ };
17 ok index($@ => 'at exec') => 'die in exec works';
18
19