Skip to content

Commit

Permalink
transform_antares_version method added at setSimulationPath.R
Browse files Browse the repository at this point in the history
  • Loading branch information
vargastat committed Sep 6, 2024
1 parent 17740e6 commit d8b62dd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/testthat/test-setSimulationPath.R
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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)
Expand Down

0 comments on commit d8b62dd

Please sign in to comment.