Skip to content
Snippets Groups Projects
Commit 4c7bb23b authored by Kieron Taylor's avatar Kieron Taylor :angry:
Browse files

New test for fetch_all_dependant_terms.

parent dae7cd58
No related branches found
No related tags found
No related merge requests found
......@@ -78,7 +78,9 @@ is(@{$efo_roots}, 0, "Found no efo roots");
is_deeply($term, $direct_term, 'Fetching the OntologyTerm from the OntologyXref should match the same object from OntologyTermAdaptor');
}
}
$term = $go_adaptor->fetch_by_accession('GO:0000182',1); # unintentionally picked an obsolete term for testing on.
my $term_list = $go_adaptor->fetch_all_by_descendant_term($term);
my $inclusive_term_list = $go_adaptor->fetch_all_by_descendant_term($term,undef,undef,1);
ok (scalar(@$term_list) == scalar(@$inclusive_term_list) - 1, "Zero_distance flag on fetch_all_by_descendant_term");
done_testing();
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment