1 # -*-Perl-*- Test Harness script for Bioperl
10 test_begin(-tests => 7);
15 my $verbose = test_debug();
17 my $t_file = test_input_file('test.ace');
27 my $a_in = Bio::SeqIO->new( -FILE => $t_file,
31 while (my $a = $a_in->next_seq) {
35 is @a_seq, 3, 'number of sequence objects';
37 my $esc_name = $a_seq[1]->display_id;
38 is( $esc_name , 'Name; 4% strewn with \ various / escaped characters',
39 "unescaping of characters, $esc_name");
41 is $a_seq[0]->alphabet, 'protein', 'alphabets detected';
42 is $a_seq[1]->alphabet, 'dna', 'alphabets detected';
44 my $o_file = test_output_file();
45 my $a_out = Bio::SeqIO->new(-FILE => "> $o_file",
49 foreach my $a (@a_seq) {
50 $a_out->write_seq($a) or $a_out_ok = 0;
52 undef($a_out); # Flush to disk
53 is $a_out_ok,1,'writing sequence';
64 is( ($before and $after and ($before eq $after)),1,