summaryrefslogtreecommitdiffstats
path: root/t
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2011-07-18 17:22:47 -0500
committerJesse Luehrs <doy@tozt.net>2011-07-18 17:22:47 -0500
commit5afc70702505b74c7415b954341a653a1c823cd9 (patch)
treecca53ba1b444214ded40a53841bd755b88f7baa0 /t
parent895798d44ae7ed4837df1827677b27d26736b736 (diff)
downloadcircular-require-5afc70702505b74c7415b954341a653a1c823cd9.tar.gz
circular-require-5afc70702505b74c7415b954341a653a1c823cd9.zip
work around annoying base.pm behavior0.03
Diffstat (limited to 't')
-rw-r--r--t/03-base.t26
1 files changed, 26 insertions, 0 deletions
diff --git a/t/03-base.t b/t/03-base.t
new file mode 100644
index 0000000..c0e032d
--- /dev/null
+++ b/t/03-base.t
@@ -0,0 +1,26 @@
+#!/usr/bin/env perl
+use strict;
+use warnings;
+use Test::More;
+
+my $success = eval <<EOF;
+no circular::require;
+
+{
+ package Foo;
+ sub bar {}
+}
+
+{
+ package Bar;
+ use base 'Foo';
+}
+1;
+EOF
+
+my $e = $@;
+
+ok($success, "no error with use base")
+ || diag($e);
+
+done_testing;