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