Skip to content

Commit

Permalink
close files after testing
Browse files Browse the repository at this point in the history
  • Loading branch information
sestaton committed Jul 25, 2016
1 parent 5078d37 commit 0b49c0a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion t/02-addinfo.t
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ check_pairinfo($tmpfq_out, $tmpfa_out);
check_pairinfo($fqfile, $fafile);
unlink $fq_data, $fa_data;

done_testing();
#
# methods
#
Expand All @@ -77,14 +78,17 @@ sub check_pairinfo {
ok ($line =~ qr/\/1$/, 'Can properly add pair information to fastq');
}
}
close $fq;

while (my $line = <$fa>) {
if ($line =~ /^\>HWI/) {
ok($line =~ qr/\/1$/, 'Can properly add pair information to fasta');
}
}
close $fa;

unlink $tmpfq_out, $tmpfa_out;
#unlink $tmpfq_out, $tmpfa_out;
return;
}

sub _build_fq_data {
Expand Down

0 comments on commit 0b49c0a

Please sign in to comment.