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"))
})
strand-tech/strand documentation built on Nov. 21, 2020, 5:37 p.m.