# library(YahooTickers)
#
# context("testing get_cac40()")
#
# cac40_tickers <- YahooTickers:::get_cac40()
#
# test_that("returns a tibble with one column and rows of lenght == 40", {
#
# # message
# #expect_message(YahooTickers:::get_cac40())
#
# # class
# expect_is(cac40_tickers, "tbl")
# expect_is(purrr::map_chr(cac40_tickers, class), "character")
#
# # names
# expect_equal(names(cac40_tickers), "tickers")
#
# # size
# expect_equal(cac40_tickers %>% ncol(), 1L)
#
# # TODO this needs to be fixed latter. CAC actually has 40 stocks and data from yahoo
# # TODO it's being used temporarily
# expect_equal(cac40_tickers %>% nrow(), 30L)
#
# # tickers length
# expect_lte(purrr::map(cac40_tickers, stringr::str_length)[[1]] %>% max(), 8)
#
# })
#
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.