Add ARM files
[dh-make-perl] / dev / arm / libtest-simple-perl / libtest-simple-perl-0.80 / t / plan.t
diff --git a/dev/arm/libtest-simple-perl/libtest-simple-perl-0.80/t/plan.t b/dev/arm/libtest-simple-perl/libtest-simple-perl-0.80/t/plan.t
new file mode 100644 (file)
index 0000000..0d3ce89
--- /dev/null
@@ -0,0 +1,21 @@
+#!/usr/bin/perl -w
+
+BEGIN {
+    if( $ENV{PERL_CORE} ) {
+        chdir 't';
+        @INC = '../lib';
+    }
+}
+
+use Test::More;
+
+plan tests => 4;
+eval { plan tests => 4 };
+is( $@, sprintf("You tried to plan twice at %s line %d.\n", $0, __LINE__ - 1),
+    'disallow double plan' );
+eval { plan 'no_plan'  };
+is( $@, sprintf("You tried to plan twice at %s line %d.\n", $0, __LINE__ -1),
+    'disallow changing plan' );
+
+pass('Just testing plan()');
+pass('Testing it some more');