@@ -23,7 +23,7 @@ my(@testfiles, %xmlfiles, %wouldxml);
23
23
# use Pod::Simple::Debug (10);
24
24
BEGIN {
25
25
my $corpusdir = File::Spec-> catdir(File::Basename::dirname(Cwd::abs_path(__FILE__ )), ' corpus' );
26
- diag " Corpusdir: $corpusdir " ;
26
+ note " Corpusdir: $corpusdir " ;
27
27
28
28
opendir (my $indir , $corpusdir ) or die " Can't opendir $corpusdir : $! " ;
29
29
my @f = map File::Spec::-> catfile($corpusdir , $_ ), readdir ($indir );
@@ -56,20 +56,20 @@ my $HACK = 0;
56
56
57
57
{
58
58
my @x = @testfiles ;
59
- diag " Files to test:" ;
60
- while (@x ) { diag " " , join (' ' , splice @x ,0,3); }
59
+ note " Files to test:" ;
60
+ while (@x ) { note " " , join (' ' , splice @x ,0,3); }
61
61
}
62
62
63
63
require Pod::Simple::DumpAsXML;
64
64
65
65
66
66
foreach my $f (@testfiles ) {
67
67
my $xml = $xmlfiles {$f };
68
- diag " " ;
68
+ note " " ;
69
69
if ($xml ) {
70
- diag " To test $f against $xml " ;
70
+ note " To test $f against $xml " ;
71
71
} else {
72
- diag " $f has no xml to test it against" ;
72
+ note " $f has no xml to test it against" ;
73
73
}
74
74
75
75
my $outstring ;
@@ -101,7 +101,7 @@ foreach my $f (@testfiles) {
101
101
close ($out );
102
102
}
103
103
unless ($xml ) {
104
- diag " (no comparison done)" ;
104
+ note " (no comparison done)" ;
105
105
ok 1;
106
106
next ;
107
107
}
@@ -112,12 +112,12 @@ foreach my $f (@testfiles) {
112
112
my $xmlsource = <$in >;
113
113
close ($in );
114
114
115
- diag " There's errata!" if $outstring =~ m / start_line="-321"/ ;
115
+ note " There's errata!" if $outstring =~ m / start_line="-321"/ ;
116
116
117
117
$xmlsource =~ s / [\n\r ]+/ \n / g ;
118
118
$outstring =~ s / [\n\r ]+/ \n / g ;
119
119
if ($xmlsource eq $outstring ) {
120
- diag " (Perfect match to $xml )" ;
120
+ note " (Perfect match to $xml )" ;
121
121
unlink $outfilename if $HACK == 1;
122
122
ok 1;
123
123
next ;
0 commit comments