[bug 2262]
[bioperl-live.git] / t / chaosxml.t
blob7b6778af5dacfb03fc39538c271995cd0e3691f4
1 # -*-Perl-*- Test Harness script for Bioperl
2 # $Id$
4 use strict;
6 BEGIN {
7         use lib 't/lib';
8         use BioperlTest;
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);