This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
In the new test for less.pm, call use_ok at compile-time
authorRafael Garcia-Suarez <rgarciasuarez@gmail.com>
Sun, 7 Jan 2007 23:27:03 +0000 (23:27 +0000)
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>
Sun, 7 Jan 2007 23:27:03 +0000 (23:27 +0000)
and add -w.

p4raw-id: //depot/perl@29710

lib/less.t

index 34dc054..3cca6fa 100644 (file)
@@ -1,4 +1,4 @@
-#!./perl 
+#!./perl -w
 
 BEGIN {
     chdir 't' if -d 't';
@@ -7,7 +7,7 @@ BEGIN {
 
 use Test::More tests => 6;
 
-use_ok( 'less' );
+BEGIN { use_ok( 'less' ) }
 
 is_deeply([less->of], [], 'more please');
 use less;