Skip to content

Commit

Permalink
Modify error text in epmc_ftxt() test
Browse files Browse the repository at this point in the history
  • Loading branch information
allenbaron committed Nov 17, 2023
1 parent 2652c6d commit 99fb4ba
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/testthat/test_epmc_ftxt.r
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@ test_that("epmc_ftxt returns", {
a <- epmc_ftxt("PMC3257301")
b <- epmc_ftxt("PMC3639880")

#correct class metadata
# correct class metadata
expect_is(a, "xml_document")
expect_is(b, "xml_document")

# fails correctly
expect_error(epmc_ftxt("2PMC3448176"))
expect_error(epmc_ftxt("PMC3476"))
expect_error(epmc_ftxt("3476"),
"Please provide a PMCID, i.e. ids starting with 'PMC'"
)
"Please provide one PMCID, i.e. id starting with 'PMC'"
)
})

0 comments on commit 99fb4ba

Please sign in to comment.