tests/testthat/test-test3Gwbwa.R

context("test3Gwbwa")

test_that("test3Gwbwa() output", {
  geese = system.file("extdata", "geese.inp", package = "R2ucare")
  geese = read_inp(geese)
  geese.hist = geese$encounter_histories
  geese.freq = geese$sample_size
  res = test3Gwbwa(geese.hist,geese.freq)
  expect_output(str(res), "List of 2")
  expect_equivalent(res$test3Gwbwa, c(472.855,20,0))
})

Try the R2ucare package in your browser

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

R2ucare documentation built on July 11, 2022, 9:06 a.m.