tests/testthat/test-show_tdlcrkindiccdf.R

test_that("Checking show_tdlcrkindiccdf class", {
  id <- cntdat$id[1]
  result <- show_tdlcrkindiccdf(id, cntdat, thrsel = TRUE, yr = 2024)
  expect_is(result, 'plotly')
})
test_that("Checking show_tdlcrkindiccdf empty data", {
  result <- show_tdlcrkindiccdf('xxxxxxx', cntdat, thrsel = TRUE, yr = 2024)
  expect_null(result)
})
tbep-tech/tbeptools documentation built on April 13, 2025, 4:50 p.m.