Test::Simple/More/Builder/Tutorial 0.41
[p5sagit/p5-mst-13.2.git] / lib / Test / Simple / t / is_deeply.t
index ea0c150..5291fb8 100644 (file)
@@ -1,12 +1,16 @@
-#!perl -w
+#!/usr/bin/perl -w
 
 BEGIN {
-    chdir 't' if -d 't';
-    @INC = '../lib';
+    if( $ENV{PERL_CORE} ) {
+        chdir 't';
+        @INC = ('../lib', 'lib');
+    }
+    else {
+        unshift @INC, 't/lib';
+    }
 }
 
 use strict;
-use lib qw(../t/lib);
 
 use Test::Builder;
 require Test::Simple::Catch;