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")
    })
  })

})
rte-antares-rpackage/antaresProcessing documentation built on June 30, 2024, 2:28 a.m.