2
## Bioperl Test Harness Script for Modules
3
## $Id: trim.t,v 1.4 2002/10/30 14:21:59 heikki Exp $
8
# this test script tests working within the chromat_dir,phd_dir,edit_dir structure
9
# it also tests the ability of Trim.pm to do its thing
15
#require 'dumpvar.pl';
18
# to handle systems with no installed Test module
19
# we include the t dir (where a copy of Test.pm is located)
21
eval { require Test; };
28
my $DEBUG = $ENV{'BIOPERLDEBUG'};
30
print("Checking if the Bio::Tools::Alignment::Consed module could be used...\n") if($DEBUG);
31
use Bio::Tools::Alignment::Consed;
35
print("Checking if the Bio::Tools::Alignment::Trim module could be used...\n") if $DEBUG;
36
use Bio::Tools::Alignment::Trim;
40
# scope some variables
41
my($o_consed,@singlets,@singletons,@pairs,@doublets,@multiplets,$invoker);
43
# instantiate a new object
45
$o_consed = Bio::Tools::Alignment::Consed->new( -acefile =>Bio::Root::IO->catfile("t","data","consed_project","edit_dir","test_project.fasta.screen.ace.1"));
46
print("Checking if a new CSM::Consed object was created...\n") if( $DEBUG);
49
# set the verbosity to a valid value (0)
50
my $verbosity = $o_consed->set_verbose(0);
53
print("Checking if the new object is a reference to a Bio::Tools::Alignment::Consed object...\n") if($DEBUG);
55
ok ref($o_consed),'Bio::Tools::Alignment::Consed';
57
print("Checking if singlets can be successfully set...\n") if ($DEBUG);
59
$invoker = $o_consed->set_singlets("verbosely");
62
print("Checking if singlets quality can be set...\n") if ($DEBUG);
63
ok !($o_consed->set_singlet_quality());
65
print("Checking if singlet and singleton qualities can be set...\n") if( $DEBUG);
66
ok !($o_consed->set_trim_points_singlets_and_singletons());