From 7b8ac9396c826fae2c74b89031382b3be91e00ba Mon Sep 17 00:00:00 2001 From: Florent Angly Date: Wed, 31 Oct 2012 18:50:20 +1000 Subject: [PATCH] Added tests that use the file() method --- t/LocalDB/Fasta.t | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/t/LocalDB/Fasta.t b/t/LocalDB/Fasta.t index c5d919269..95b65042c 100644 --- a/t/LocalDB/Fasta.t +++ b/t/LocalDB/Fasta.t @@ -2,7 +2,7 @@ BEGIN { use lib '.'; use Bio::Root::Test; - test_begin( -tests => 76, + test_begin( -tests => 79, -requires_modules => [qw(Bio::DB::Fasta Bio::SeqIO)]); } use strict; @@ -41,6 +41,9 @@ my $test_files = [ is $db->header('AW057119'), 'AW057119 test description'; is $db->seq('foobarbaz'), undef; is $db->get_Seq_by_id('foobarbaz'), undef; + is $db->file('AW057119'), '1.fa'; + is $db->file('AW057410'), '3.fa'; + is $db->file('CEESC13F'), '6.fa'; # Bio::DB::RandomAccessI and Bio::DB::SeqI methods ok my $primary_seq = $db->get_Seq_by_id('AW057119'); -- 2.11.4.GIT