1 # -*-Perl-*- Test Harness script for Bioperl
9 test_begin(-tests => 5);
11 use_ok('Bio::Tree::RandomFactory');
12 use_ok('Bio::TreeIO');
13 use_ok('Bio::Tree::Statistics');
16 my $FILE1 = test_output_file();
19 my $factory = Bio::Tree::RandomFactory->new(-sample_size => $ssize);
20 my $stats = Bio::Tree::Statistics->new();
22 my $tree = $factory->next_tree;
24 is($tree->get_nodes, ($ssize * 2 - 1));
26 my $treeio = Bio::TreeIO->new(-format => 'newick', -file => ">$FILE1");
28 $treeio->write_tree($tree);