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
ad9c01f9
Commit
ad9c01f9
authored
Aug 04, 2021
by
Delaigue Olivier
Browse files
test(PE_Oudin): change test when TimeStepIn = "hourly" and Julian days not ordered
Refs
#134
parent
15d7a542
Pipeline
#26054
passed with stage
in 8 minutes and 24 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
tests/testthat/test-evap.R
View file @
ad9c01f9
...
...
@@ -86,9 +86,8 @@ test_that("Inconsitent time series", {
# not ordered hourly dates
DatesFor3Messy
<-
sample
(
BasinObs_L0123003
$
DatesR
)
DatesFor3Messy
<-
DatesFor3Messy
[
-5L
]
expect_error
(
object
=
PE_Oudin
(
JD
=
as.POSIXlt
(
DatesFor3Messy
)
$
yday
+
1
,
Temp
=
seq_along
(
BasinObs_L0123003
$
T
)
[
-5L
]
,
Temp
=
seq_along
(
BasinObs_L0123003
$
T
),
Lat
=
0.8
,
LatUnit
=
"rad"
,
TimeStepIn
=
"hourly"
),
regexp
=
msgHoury
,
fixed
=
TRUE
)
...
...
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