File tree 1 file changed +7
-15
lines changed
1 file changed +7
-15
lines changed Original file line number Diff line number Diff line change @@ -80,14 +80,12 @@ foreach my $f (@testfiles) {
80
80
undef $p ;
81
81
};
82
82
83
- if ($@ ) {
84
- diag " ** Couldn't parse $f :\n $@ " ;
85
- ok 0;
83
+ is $@ , ' ' , " parsed $f without error" or do {
86
84
ok 0;
87
85
next ;
88
- }
86
+ };
89
87
90
- ok 1, " OK, parsing $f generated " . length ($outstring ) . " bytes" ;
88
+ note " generated " . length ($outstring ) . " bytes" ;
91
89
92
90
die " Null outstring?" unless $outstring ;
93
91
@@ -116,15 +114,9 @@ foreach my $f (@testfiles) {
116
114
117
115
$xmlsource =~ s / [\n\r ]+/ \n / g ;
118
116
$outstring =~ s / [\n\r ]+/ \n / g ;
119
- if ($xmlsource eq $outstring ) {
120
- note " (Perfect match to $xml )" ;
121
- unlink $outfilename if $HACK == 1;
122
- ok 1;
123
- next ;
124
- }
125
-
126
- diag " $outfilename and $xml don't match!" ;
127
- print STDERR ` diff $xml $outfilename ` if $HACK ;
128
- ok 0;
117
+ ok $xmlsource eq $outstring , " perfect match to $xml " or do {
118
+ diag ` diff $xml $outfilename ` if $HACK ;
119
+ };
129
120
121
+ unlink $outfilename if $HACK == 1;
130
122
}
You can’t perform that action at this time.
0 commit comments