Skip to content

Commit aa53885

Browse files
committed
Replace old basic tests
1 parent 8664d37 commit aa53885

File tree

5 files changed

+23
-99
lines changed

5 files changed

+23
-99
lines changed

MANIFEST

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,5 @@ lib/HTML/Tagset.pm
33
Makefile.PL
44
MANIFEST
55
README.md
6-
t/00_about_verbose.t
7-
t/01_old_junk.t
6+
t/00-load.t
87
t/pod.t

t/00-load.t

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!perl -w
2+
3+
use Test::More tests => 1;
4+
5+
use HTML::Tagset;
6+
7+
diag( "Testing HTML::Tagset $HTML::Tagset::VERSION, Test::More $Test::More::VERSION, Perl $], $^X" );
8+
9+
pass( 'Module loaded' );

t/00_about_verbose.t

Lines changed: 0 additions & 85 deletions
This file was deleted.

t/01_old_junk.t

Lines changed: 0 additions & 8 deletions
This file was deleted.

t/pod.t

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,15 @@
1-
#!perl -w
1+
#!perl
2+
3+
use strict;
4+
use warnings;
25

36
use Test::More;
4-
eval "use Test::Pod 1.14";
5-
plan skip_all => "Test::Pod 1.14 required for testing POD" if $@;
6-
all_pod_files_ok();
7+
8+
my $module = 'Test::Pod 1.14';
9+
10+
if ( eval "use $module; 1;" ) { ## no critic (ProhibitStringyEval)
11+
all_pod_files_ok();
12+
}
13+
else {
14+
plan skip_all => "$module required for testing POD";
15+
}

0 commit comments

Comments
 (0)