tests/testthat/test-eol_ping.R

context("eol_ping")

test_that("eol_ping returns the correct value", {
  skip_on_cran()
  skip_on_ci()

  Sys.sleep(0.5)
  expect_true(eol_ping())
  expect_false(eol_ping(503))
  Sys.sleep(0.5)
  expect_true(eol_ping("content"))
})

Try the taxize package in your browser

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

taxize documentation built on Sept. 11, 2024, 6:13 p.m.