tests/testthat/test_StockEvent.R

context("StockEvent setters (class unions)")

testthat::test_that("setStockGraph", {
  testthat::expect_error(setStockGraph(.Object = stockEvent()))
  testthat::expect_error(setStockGraph(.Object = stockEvent(), stockGraph = stockGraph_obj))
})

Try the rAmCharts package in your browser

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

rAmCharts documentation built on Feb. 9, 2018, 6:10 a.m.