]> git.vpit.fr Git - perl/modules/re-engine-Plugin.git/blobdiff - t/ctl/eval-exec.t
Put all tests into a subdirectory
[perl/modules/re-engine-Plugin.git] / t / ctl / eval-exec.t
diff --git a/t/ctl/eval-exec.t b/t/ctl/eval-exec.t
new file mode 100644 (file)
index 0000000..4ec6475
--- /dev/null
@@ -0,0 +1,18 @@
+=pod
+
+Copy of F<t/eval-comp.t> that tests another callback sub.
+
+=cut
+
+use strict;
+
+use Test::More tests => 1;
+
+use re::engine::Plugin (
+    exec => sub { die "died at exec time" },
+);
+
+eval { 'oh' =~ /noes/ };
+ok index($@ => 'at exec') => 'die in exec works';
+
+