tests/testthat/test_parameters_selection.R

context("check parameters value")
test_that("input values selected for period are valid", {
  prints_text(iex.chart("GM", "2m"), c("Stock Info is available in IEX", "Value incorrect. Select from valid values: 5y, 2y, 1y, ytd, 6m, 3m, 1m, 1d" ))

})
test_that("input values selected for stock symbol are valid", {
  prints_text(iex.chart("gm", "1d"), c("Stock Info is available in IEX", "Range selected is :1d" ))

})

Try the Riex package in your browser

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

Riex documentation built on April 24, 2021, 5:09 p.m.