tests/testthat/test_ch_fdcurve.R

context("Testing ch_fdcurve")

test_that("ch_fdcurve correctly returns values", {
  flow <- CAN05AA008
  test <- ch_fdcurve(flow, normal = FALSE, gust = TRUE)
  expect_true(test$flow[1] <= 9.78 & test$flow[25] >= 11.9)
})

Try the CSHShydRology package in your browser

Any scripts or data that you put into this service are public.

CSHShydRology documentation built on Sept. 11, 2024, 5:50 p.m.