tests/testthat/test-getGeographicTrimming.R

#Copyright © 2016 RTE Réseau de transport d’électricité

context("Function getGeographicTrimming")

sapply(studyPathS, function(studyPath){
  
  opts <- setSimulationPath(studyPath)
  
  test_that("Areas filtering is ok", {
    filtering <- getGeographicTrimming(areas = "all", links = T, opts = opts)
    expect_identical(names(filtering), c("areas", "links"))
    expect_true(length(filtering$areas) == length(opts$areaList))
  })
  
})
rte-antares-rpackage/antaresRead documentation built on Oct. 18, 2024, 7:49 a.m.