Fix bug 253 testing for defined
[bioperl-live.git] / t / SeqIO / chaosxml.t
blob1272e5f1332a4a623895de161eb4b24440348f0e
1 # -*-Perl-*- Test Harness script for Bioperl
2 # $Id$
4 use strict;
6 BEGIN {
7         use lib '.';
8         use Bio::Root::Test;
9         
10         test_begin(-tests => 2,
11                            -requires_module => 'Data::Stag');
12         
13         use_ok('Bio::SeqIO');
16 my $verbose = test_debug();
18 # currently chaosxml is write-only
19 my $in = Bio::SeqIO->new(-format => 'genbank',
20                                                                  -verbose => $verbose,
21                                                                  -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 => 'chaosxml');
29 $out->write_seq($seq);
30 ok (-e $out_file);