Commit 8d19e059 authored by David's avatar David
Browse files

test: calibration with sibling a priori node

Refs #156, #157
Showing with 12 additions and 0 deletions
+12 -0
...@@ -122,6 +122,18 @@ test_that("Lavenne criterion: not upstream a priori nodes are allow if processed ...@@ -122,6 +122,18 @@ test_that("Lavenne criterion: not upstream a priori nodes are allow if processed
transfo = "sqrt" transfo = "sqrt"
) )
expect_equal(attr(IC156$`54029`, "AprioriId"), c("54029" = "54095")) expect_equal(attr(IC156$`54029`, "AprioriId"), c("54029" = "54095"))
e <- runCalibration(
nodes = nodes,
Qobs2 = NULL,
InputsCrit = IC156,
CalibOptions = NULL,
FUN_CRIT = ErrorCrit_KGE2,
runRunModel = FALSE,
IsHyst = FALSE
)
for (x in ls(e)) assign(x, get(x, e))
# 54029 not processed as ungauged
expect_false(is.null(OutputsCalib$`54029`$CritFinal))
}) })
test_that("Lavenne criterion: current node and a priori node must use the same model", { test_that("Lavenne criterion: current node and a priori node must use the same model", {
......
Supports Markdown
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