9 test_begin(-tests => 19,
10 -requires_modules => [qw(Bio::PhyloNetwork)]);
12 use_ok('Bio::PhyloNetwork::TreeFactory');
15 my $factory=Bio::PhyloNetwork::TreeFactory->new(-numleaves=>4);
16 isa_ok($factory,'Bio::PhyloNetwork::TreeFactory');
20 while (my $net=$factory->next_network()) {
24 is(scalar @nets,15,'tree factory');
28 foreach my $enw (<DATA>) {
29 my $net=Bio::PhyloNetwork->new(-eNewick=>$enw);
32 is(scalar @netsbk,15,'seen all the data lines');
34 foreach my $net (@nets) {
36 foreach my $netbk (@netsbk) {
37 if ($net->mu_distance($netbk)==0) {