summaryrefslogtreecommitdiff
path: root/t/main.t
diff options
context:
space:
mode:
Diffstat (limited to 't/main.t')
-rw-r--r--t/main.t19
1 files changed, 19 insertions, 0 deletions
diff --git a/t/main.t b/t/main.t
new file mode 100644
index 0000000..67c86ae
--- /dev/null
+++ b/t/main.t
@@ -0,0 +1,19 @@
+use strict;
+use warnings;
+
+use Test::More 0.88;
+use Module::Reader qw(:all);
+
+my $mod_content = do {
+ open my $fh, '<', 't/lib/TestLib.pm';
+ local $/;
+ <$fh>;
+};
+
+{
+ local @INC = @INC;
+ unshift @INC, 't/lib';
+ is module_content('TestLib'), $mod_content, 'correctly load module from disk';
+}
+
+done_testing;