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