tests/testthat/test-calcPhotic.R

#calcPhotic test

test_that("multiplication works", {
  expect_error(calcPhotic(Z = "m"), info = "Input values must be numeric")
  expect_error(calcPhotic(Z = 0), info = "Input values cannot be zero")
  expect_equal(calcPhotic(Z = 4), 9.25628141)
})

Try the rLakeHabitat package in your browser

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

rLakeHabitat documentation built on March 28, 2026, 1:06 a.m.