tests/testthat/test-load_yahoo_pe.R

test_that("Test: load_yahoo_pe", {

  res <- load_yahoo_pe(ticker = c("NOVO-B.CO", "HLUN-B.CO"))

  expect_equal(class(res), "numeric")

  expect_false(
    res %>%
      is.na() %>%
      all()
  )

})
kristian-bak/kb.yahoo documentation built on July 18, 2022, 5:57 p.m.