tests/testthat/test-utils.R

test_that("output from validate is as expected", {
  testthat::skip_on_cran()
  expect_true(validate("aapl"))
})

test_that("output from validate is as expected when symbol is wrong", {
  testthat::skip_on_cran()
  expect_false(validate("aapls"))
})

Try the yahoofinancer package in your browser

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

yahoofinancer documentation built on May 29, 2024, 2:30 a.m.