[libhtml-scrubber-perl] 06/13: Replace basic load test with neater version

Florian Schlichting fsfs at moszumanska.debian.org
Sat Nov 11 13:46:05 UTC 2017


This is an automated email from the git hooks/post-receive script.

fsfs pushed a commit to annotated tag release/0.10-TRIAL
in repository libhtml-scrubber-perl.

commit d716636be4ae5c55a2568554db7e08adf2d4044c
Author: Nigel Metheringham <nigelm at cpan.org>
Date:   Tue Mar 6 15:02:56 2012 +0000

    Replace basic load test with neater version
---
 t/01_use.t | 17 +++++++----------
 1 file changed, 7 insertions(+), 10 deletions(-)

diff --git a/t/01_use.t b/t/01_use.t
index af0a185..d31aa24 100644
--- a/t/01_use.t
+++ b/t/01_use.t
@@ -1,12 +1,9 @@
-# Before `make install' is performed this script should be runnable with
-# `make test'. After `make install' it should work as `perl test.pl'
+# Check this module loads
+#
+use Test::More tests => 1;
 
-#########################
-
-# change 'tests => 1' to 'tests => ';
-
-use Test;
-BEGIN { plan tests => 1 };
-use HTML::Scrubber;
-ok(1);
+BEGIN {
+    use_ok( 'HTML::Scrubber' ) || print "Bail out!\n";
+}
 
+diag( "Testing HTML::Scrubber $HTML::Scrubber::VERSION, Perl $], $^X" );

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libhtml-scrubber-perl.git



More information about the Pkg-perl-cvs-commits mailing list