tests/testthat/test_StrategyConfig.R

context("StrategyConfig")

config <- strand:::StrategyConfig$new(yaml::yaml.load_file("data/test_PortOpt_simple.yaml"))

test_that("getStrategyNames returns the names of all strategies", {
  expect_equal(config$getStrategyNames(), c("strategy_1", "strategy_2"))
})

Try the strand package in your browser

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

strand documentation built on Nov. 20, 2020, 1:08 a.m.