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

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.