From Code to Community: Sponsoring The Perl and Raku Conference 2025 Learn more
|
my $error ;
BEGIN {
$error = 0;
if ( $@ ) {
}
plan tests => 3;
}
ok(1);
$FILE1 = 'out.tre' ;
END { unlink $FILE1 ; }
my $ssize = 5;
my $factory = new Bio::Tree::RandomFactory( -sample_size => $ssize );
my $stats = new Bio::Tree::Statistics();
my $tree = $factory ->next_tree;
ok( $tree ->get_nodes, ( $ssize * 2 - 1));
my $treeio = new Bio::TreeIO( -format => 'newick' , -file => ">$FILE1" );
$treeio ->write_tree( $tree );
undef $treeio ;
ok(-s $FILE1 );
|