tests/testthat/test-surplusSectors.R

context("Surplus of sectors")

sapply(studyPathS, function(studyPath){

  opts <- setSimulationPath(studyPath)

  mydata <- readAntares(areas="all", clusters = "all",
                        showProgress = FALSE, mcYears = "all")

  s <- suppressWarnings(surplusSectors(mydata))

  describe("surplusSectors", {

    it("returns an antaresDataTable with correct number of lines and columns", {
      expect_is(s, "antaresDataTable")
    })
  })

})

Try the antaresProcessing package in your browser

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

antaresProcessing documentation built on Nov. 7, 2021, 1:06 a.m.