tests/testthat/test_file_conf.R

context("configuration")
test_that("Conf object", {
  conf = getDefaultConf("AgentDQN")
  conf$get("agent.lr")
  conf$updatePara("agent.lr", 0.1)
  conf$set(agent.lr = 0.1)
  conf$show()
  expect_true(TRUE)
})

context("naked conf")
test_that("test conf", {
  conf = RLConf$new()
  expect_class(conf, "RLConf")
  RLLog$new(conf)
})
compstat-lmu/rlR documentation built on June 26, 2019, 5:56 p.m.