tests/testthat/test-coinlist.R

test_that('the "coinlist_symbols" function returns a dataframe', {
  skip_on_cran()
  expect_s3_class(coinlist_symbols(), 'data.frame')
})

test_that('the "coinlist_time" function returns a double', {
  skip_on_cran()
  expect_type(coinlist_time(), 'double')
})

Try the cryptotrackr package in your browser

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

cryptotrackr documentation built on June 22, 2024, 10:39 a.m.