[BUG] bug 2598
[bioperl-live.git] / t / asciitree.t
blob19b7fff545d583fcdd3450a455fe1d50b4931924
1 # -*-Perl-*- Test Harness script for Bioperl
2 # $Id$
4 # `make test'. After `make install' it should work as `perl test.t'
6 use strict;
8 BEGIN {
9         use lib 't/lib';
10     use BioperlTest;
11     
12     test_begin(-tests => 2);
13         
14         use_ok('Bio::SeqIO');
17 my $verbose = test_debug();
19 # asciitree is a write-only format
20 my $in = Bio::SeqIO->new(-format => 'genbank',
21                                                 -verbose => $verbose,
22                                                 -file => test_input_file('AE003644_Adh-genomic.gb'));
23 my $seq = $in->next_seq;
25 my $out_file = test_output_file();
26 my $out = Bio::SeqIO->new(-file => ">$out_file",
27                                                                   -verbose => $verbose,
28                                                                   -format => 'asciitree');
29 $out->write_seq($seq);
30 ok (-s $out_file);