tests/testthat/test-read_optim_criteria.R

context("readOptimCriteria")


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

if(!isH5Opts(opts))
{
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 Aug. 31, 2023, 1:09 a.m.