tests/testthat/test_get_data.R

context("get_data function tests")

test_that("get_data return errors", {
  expect_error(get_data(subdomain = "xxx", 1))
  expect_error(get_data(subdomain = "kyy"))
})

Try the hydroscoper package in your browser

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

hydroscoper documentation built on May 14, 2021, 5:08 p.m.