Commit a33aede5 authored by Dorchies David's avatar Dorchies David
Browse files

test: failed after integration of RCP8.5

parent 33bcb7a7
Pipeline #31854 passed with stages
in 53 minutes and 13 seconds
......@@ -26,7 +26,9 @@ if (Sys.getenv("CI") == "") {
scenario <- cfg$hydroclim$drias$scenarios[1]
test_that("createBasinsObs should work", {
BasinsObs <- createBasinsObs(scenarioDriasFiles[, scenario],
files <- scenarioDriasFiles[, scenario]
files <- files[grep("Historical|rcp4.5", files)]
BasinsObs <- createBasinsObs(files,
dfMailles = dfMailles, cfg = cfg)
expect_true(TRUE)
})
......
......@@ -4,7 +4,7 @@ if (Sys.getenv("CI") == "") {
scenario <- cfg$hydroclim$drias$scenarios[1]
test_that("readDrias2020 for 1 file should be OK", {
l <- readDrias2020(scenarioDriasFiles[3, scenario], cfg = cfg)
l <- readDrias2020(scenarioDriasFiles[4, scenario], cfg = cfg)
expect_equal(format(l$DatesR[1], format = "%Y-%m-%d"), "1951-01-01")
expect_equal(format(l$DatesR[length(l$DatesR)], format = "%Y-%m-%d"), "2005-12-31")
expect_equal(paste(l$cells[[1]]$XY, collapse = "x"), names(l$cells)[1])
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment