tests/testthat/test-read_optim_criteria.R

context("readOptimCriteria")


sapply(studyPathS, function(studyPath){
  
opts <- setSimulationPath(studyPath, 1)

describe("readOptimCriteria", {
  it("returns an antaresDataTable", {
    optimCrit <- readOptimCriteria(opts)
    expect_is(optimCrit, "antaresDataTable")
    expect_equal(attr(optimCrit, "type"), "optimCriteria")
    expect_equal(attr(optimCrit, "synthesis"), FALSE)
    expect_equal(attr(optimCrit, "timeStep"), "weekly")
  })
})
})

Try the antaresRead package in your browser

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

antaresRead documentation built on Sept. 13, 2024, 1:12 a.m.