Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
HYCAR-Hydro
airGR
Commits
b028fc19
Commit
b028fc19
authored
Dec 03, 2020
by
Dorchies David
Browse files
test: Add a failing test for issue on aggregating from and to the same time step
Refs
#73
,
#41
parent
91ff6627
Pipeline
#18082
failed with stages
in 12 minutes and 18 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
tests/testthat/test-SeriesAggreg.R
View file @
b028fc19
...
...
@@ -186,3 +186,14 @@ test_that("Check data.frame handling in SeriesAggreg.list", {
expect_warning
(
SeriesAggreg
(
InputsModelDown1
,
"%Y%m"
),
regexp
=
"it will be ignored in the aggregation"
)
})
test_that
(
"SeriesAggreg from and to the same time step should return initial time series"
,
{
InputsModel
<-
CreateInputsModel
(
FUN_MOD
=
RunModel_GR4J
,
DatesR
=
BasinObs
$
DatesR
,
Precip
=
BasinObs
$
P
,
PotEvap
=
BasinObs
$
E
)
I2
<-
SeriesAggreg
(
InputsModel
,
"%Y%m"
)
I3
<-
SeriesAggreg
(
I2
,
"%Y%m"
)
expect_equal
(
I2
,
I3
)
})
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment