Skip to content

Commit

Permalink
Fixes expected number of exact matches
Browse files Browse the repository at this point in the history
The API server returns only 1 exact match anymore, not multiple. This
changes to allow 1 or more being returned.

Fixes #152.
  • Loading branch information
hlapp committed Feb 2, 2021
1 parent c3024d9 commit d661479
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/testthat/test-pk.R
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ test_that("Test retrieving IRI", {
expect_true(is.na(iii))

tiris <- find_term("pelvic fin", definedBy = NA, matchTypes = c("exact"))
expect_gt(nrow(tiris), 1)
expect_gte(nrow(tiris), 1)
expect_silent(tiri <- pk_get_iri("pelvic fin", as = NA, exactOnly = TRUE))
expect_equal(tiri, "http://purl.obolibrary.org/obo/UBERON_0000152")

Expand Down

0 comments on commit d661479

Please sign in to comment.