tests/testthat/test-herpAdvancedSearch.R

test_that("herpAdvancedSearch returns expected output", {
  skip_on_cran()
  skip_if_not(Sys.getenv("NOT_CRAN") == "true")
  
  result <- herpAdvancedSearch(higher = "snakes", year = "2010", location = "Brazil")
  
  expect_type(result, "character")
  expect_true(grepl("https://reptile-database.reptarium.cz/advanced_search?", result))
})

Try the letsHerp package in your browser

Any scripts or data that you put into this service are public.

letsHerp documentation built on June 23, 2025, 5:09 p.m.