Add ARM files
[dh-make-perl] / dev / arm / libtest-exception-perl / libtest-exception-perl-0.27 / t / throws_ok.t
diff --git a/dev/arm/libtest-exception-perl/libtest-exception-perl-0.27/t/throws_ok.t b/dev/arm/libtest-exception-perl/libtest-exception-perl-0.27/t/throws_ok.t
new file mode 100644 (file)
index 0000000..2e57ac9
--- /dev/null
@@ -0,0 +1,9 @@
+#! /usr/bin/perl -Tw
+
+use strict;
+use warnings;
+use Test::More tests => 2;
+BEGIN { use_ok( 'Test::Exception' ) };
+
+eval { throws_ok {} undef };
+like( $@, '/^throws_ok/', 'cannot pass undef to throws_ok' );
\ No newline at end of file