tests/testthat/test-rl_version.R

context("rl_version functions")

test_that("rl_version works", {
  skip_on_cran()

  aa <- rl_version()

  expect_is(aa, "character")
  expect_match(aa, "[0-9]{4}-[0-9]")
})

test_that("rl_version curl options work", {
  skip_on_cran()

  expect_error(rl_version(timeout_ms = 1), "Timeout was reached")
})

Try the rredlist package in your browser

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

rredlist documentation built on Aug. 26, 2017, 9:03 a.m.