summaryrefslogtreecommitdiff
path: root/cpan/Test-Simple/t/useing.t
diff options
context:
space:
mode:
Diffstat (limited to 'cpan/Test-Simple/t/useing.t')
-rw-r--r--cpan/Test-Simple/t/useing.t19
1 files changed, 19 insertions, 0 deletions
diff --git a/cpan/Test-Simple/t/useing.t b/cpan/Test-Simple/t/useing.t
new file mode 100644
index 0000000000..c4ce507127
--- /dev/null
+++ b/cpan/Test-Simple/t/useing.t
@@ -0,0 +1,19 @@
+BEGIN {
+ if( $ENV{PERL_CORE} ) {
+ chdir 't';
+ @INC = '../lib';
+ }
+}
+
+use Test::More tests => 5;
+
+require_ok('Test::Builder');
+require_ok("Test::More");
+require_ok("Test::Simple");
+
+{
+ package Foo;
+ use Test::More import => [qw(ok is can_ok)];
+ can_ok('Foo', qw(ok is can_ok));
+ ok( !Foo->can('like'), 'import working properly' );
+}