$Expect =~ s/\n+$//;
my @expect = split /\n\n/, $Expect;
+
+sub commentless {
+ my $in = $_[0];
+ $in =~ s/^#[^\n]*\n//mg;
+ $in =~ s/\n#[^\n]*$//mg;
+ return $in;
+}
+
+
for (my $x=0; $x < @got; $x++) {
- ok $got[$x], $expect[$x]."\n";
+ ok commentless($got[$x]), commentless($expect[$x]."\n");
}