1 # This is -*-Perl-*- code#
2 # Bioperl Test Harness Script for Modules#
8 test_begin(-tests => 9,
9 -requires_module => 'Graph',
10 -requires_module => 'XML::Twig');
12 use_ok('Bio::Network::IO');
15 my $verbose = test_debug();
20 ok my $io = Bio::Network::IO->new
22 -file => test_input_file("human_small-01.xml"),
23 -verbose => $verbose );
24 ok my $g1 = $io->next_network();
25 ok $g1->node_count == 646;
26 # remember that interactions are only formed of pairs of nodes
27 ok $g1->interactions == 439;
31 ok $io = Bio::Network::IO->new
33 -file => test_input_file("Viruses.psi25.xml"),
34 -verbose => $verbose );
35 ok $g1 = $io->next_network();
36 ok $g1->node_count == 521;
37 ok $g1->interactions == 994;