From d8b62dd9fe2e0543165682bec9aa6ba91b6a581a Mon Sep 17 00:00:00 2001 From: vargastat Date: Fri, 6 Sep 2024 15:13:18 +0200 Subject: [PATCH] transform_antares_version method added at setSimulationPath.R --- tests/testthat/test-setSimulationPath.R | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/testthat/test-setSimulationPath.R b/tests/testthat/test-setSimulationPath.R index f8d4d34f..65797873 100644 --- a/tests/testthat/test-setSimulationPath.R +++ b/tests/testthat/test-setSimulationPath.R @@ -198,7 +198,7 @@ test_that("New meta data for areas with a ST cluster", { expect_false(is.null(opts_study_test$areasWithSTClusters)) }) -library(stringr) + # v870---- test_that("New meta data for group dimension of binding constraints", { # read latest version study @@ -208,6 +208,7 @@ test_that("New meta data for group dimension of binding constraints", { expect_is(opts_study_test$binding, "data.table") }) +library(stringr) test_that("valid versions are transformed correctly", { expect_equal(transform_antares_version("9.0")$r, 900) expect_equal(transform_antares_version("9.45")$r, 945)