Commit ad9c01f9 authored by Delaigue Olivier's avatar Delaigue Olivier
Browse files

test(PE_Oudin): change test when TimeStepIn = "hourly" and Julian days not ordered

Refs #134
Showing with 1 addition and 2 deletions
+1 -2
...@@ -86,9 +86,8 @@ test_that("Inconsitent time series", { ...@@ -86,9 +86,8 @@ test_that("Inconsitent time series", {
# not ordered hourly dates # not ordered hourly dates
DatesFor3Messy <- sample(BasinObs_L0123003$DatesR) DatesFor3Messy <- sample(BasinObs_L0123003$DatesR)
DatesFor3Messy <- DatesFor3Messy[-5L]
expect_error(object = PE_Oudin(JD = as.POSIXlt(DatesFor3Messy)$yday + 1, 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"), Lat = 0.8, LatUnit = "rad", TimeStepIn = "hourly"),
regexp = msgHoury, fixed = TRUE) regexp = msgHoury, fixed = TRUE)
......
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