t/*: remove "use lib '.'" and t/lib/Error.pm
[bioperl-live.git] / t / SeqIO / chaosxml.t
blobe14e14c61e3619403e12da82a61c989a3b23dccc
1 # -*-Perl-*- Test Harness script for Bioperl
2 # $Id$
4 use strict;
6 BEGIN {
7         use Bio::Root::Test;
8         
9         test_begin(-tests => 2,
10                            -requires_module => 'Data::Stag');
11         
12         use_ok('Bio::SeqIO');
15 my $verbose = test_debug();
17 # currently chaosxml is write-only
18 my $in = Bio::SeqIO->new(-format => 'genbank',
19                                                                  -verbose => $verbose,
20                                                                  -file => test_input_file('AE003644_Adh-genomic.gb'));
22 my $seq = $in->next_seq;
24 my $out_file = test_output_file();
25 my $out = Bio::SeqIO->new(-file => ">$out_file",
26                                                                   -verbose => $verbose,
27                                                                   -format => 'chaosxml');
28 $out->write_seq($seq);
29 ok (-e $out_file);