tests/testthat/test_historical.R

library(usdc)

test_that("Ethereum historical circulation fetches tibble data frame", {
  expect_type(fetch_historical_ethereum(), "list")
})

test_that("Unsupported metric throws error", {
  expect_error(fetch_historical_ethereum(metric = "DNE"))
})

Try the usdc package in your browser

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

usdc documentation built on June 21, 2021, 5:07 p.m.