my
$NUMTESTS
;
BEGIN {
if
( $@ ) {
}
$NUMTESTS
= 14;
plan
tests
=>
$NUMTESTS
;
}
my
$tmpdir
= File::Spec->catfile(
qw(t tmp)
);
mkdir
(
$tmpdir
,0777);
ok(1);
ok
my
$in
= Bio::Restriction::IO->new();
ok
my
$renzs
=
$in
->
read
;
ok
$renzs
->each_enzyme, 532;
ok
my
$e
=
$renzs
->get_enzyme(
'AccI'
);
ok
$e
->name,
'AccI'
;
ok
my
$out
= Bio::Restriction::IO->new(
-format
=>
'base'
,
-file
=>
">"
.File::Spec->catfile(
$tmpdir
,
"r"
));
ok
$in
= Bio::Restriction::IO->new
(
-format
=>
'withrefm'
,
-verbose
=> 0,
-file
=> Bio::Root::IO->catfile(
"t"
,
"data"
,
"rebase.withrefm"
));
ok
$renzs
=
$in
->
read
;
ok
$renzs
->each_enzyme, 11;
ok
$in
= Bio::Restriction::IO->new
(
-format
=>
'itype2'
,
-verbose
=> 0,
-file
=> Bio::Root::IO->catfile(
"t"
,
"data"
,
"rebase.itype2"
));
ok
$renzs
=
$in
->
read
;
ok
$renzs
->each_enzyme, 16;
ok
$out
= Bio::Restriction::IO->new(
-format
=>
'base'
);
END { cleanup(); }
sub
cleanup {
eval
{
Bio::Root::IO->rmtree(
$tmpdir
)
if
(-d
$tmpdir
);
};
}