2
# $Id: asciitree.t,v 1.1.6.1 2006/10/16 17:08:15 sendu Exp $
3
# Before `make install' is performed this script should be runnable with
4
# `make test'. After `make install' it should work as `perl test.t'
7
use vars qw($NUMTESTS $out_file);
12
$out_file = File::Spec->catfile(qw(t data tmp-asciitree));
13
# to handle systems with no installed Test module
14
# we include the t dir (where a copy of Test.pm is located)
16
eval { require Test; };
21
plan tests => $NUMTESTS;
24
use Bio::SeqIO::asciitree;
27
my $verbose = $ENV{'BIOPERLDEBUG'};
31
# asciitree is a write-only format
32
my $in = Bio::SeqIO->new(-format => 'genbank',
34
-file => Bio::Root::IO->catfile
35
qw(t data AE003644_Adh-genomic.gb) );
36
my $seq = $in->next_seq;
38
my $out = Bio::SeqIO->new(-file => ">$out_file",
40
-format => 'asciitree');
41
$out->write_seq($seq);
45
unlink $out_file if -e $out_file;