4 use Test::More tests => 7;
6 use File::Spec::Functions;
8 use_ok('SGN::Genefamily');
10 my $test_dir = catdir($FindBin::Bin,'genefamily_data');
11 my $gf = SGN::Genefamily->new( files_dir => $test_dir,
16 is($gf->name(), "family_0", "name test");
17 is($gf->dataset(), "test", "dataset test");
18 is($gf->files_dir(), $test_dir, "files_dir test");
19 is($gf->get_path(), catdir($test_dir,'test'), "get_path test");
20 my $aln = $gf->get_alignment();
21 like($aln, qr/KLSILKDV-----------NDKSCV/, "alignment test");
23 my $fasta = $gf->get_fasta();
25 like($fasta, qr/KLSILKDVNDKSCV/, "fasta test");