tests/testthat/test_DataSet_setters.R

context("DataSet setters (class unions)")

testthat::test_that("addStockEvent", {
  testthat::expect_error(addStockEvent(.Object = dataSet()))
  testthat::expect_error(addStockEvent(.Object = dataSet(), stockEvent = 1))
})

Try the rAmCharts package in your browser

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

rAmCharts documentation built on Dec. 6, 2019, 5:11 p.m.