diff --git a/tests/testthat/test-updateGeneralSettings.R b/tests/testthat/test-updateGeneralSettings.R index 10032948..f103ad6d 100644 --- a/tests/testthat/test-updateGeneralSettings.R +++ b/tests/testthat/test-updateGeneralSettings.R @@ -12,10 +12,15 @@ sapply(studies, function(study) { test_that("Update a general parameter", { + # year-by-year + expect_true(getOption("antares")$parameters$general$`year-by-year`) updateGeneralSettings(year.by.year = FALSE) - expect_false(getOption("antares")$parameters$general$`year-by-year`) + # geographic-trimming + expect_true(getOption("antares")$parameters$general$`geographic-trimming`) + updateGeneralSettings(geographic.trimming = FALSE) + expect_false(getOption("antares")$parameters$general$`geographic-trimming`) }) # remove temporary study