tests/testthat/test-set_hill_params.R

test_that("setting", {
  
  hill_params <- "test"
  
  x <- list()
  
  expect_no_warning(x <- set_hill_params(x, hill_params))
  expect_equal(x, list(hill_params = hill_params))
  
})

test_that("clear downstream", {
  
  hill_params <- "test"
  
  x <- list(resp = "test")
  
  expect_warning(x <- set_hill_params(x, hill_params))
  expect_equal(x, list(hill_params = hill_params))
  
  x <- list(sensitivity = "test")

  expect_warning(x <- set_hill_params(x, hill_params))
  expect_equal(x, list(hill_params = hill_params))
  
})

Try the GeoTox package in your browser

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

GeoTox documentation built on April 4, 2025, 5:07 a.m.