tests/testthat/test-print.R

test_that("print outputs the right element for naivepop", {
  result <- summary(naivepop_fit_bin)
  expect_snapshot(print(result))
})

test_that("print outputs the right element for naive", {
  result <- summary(naive_fit_bin)
  expect_snapshot(print(result))
})

test_that("print outputs the right element for elastic_net", {
  result <- summary(elastic_net_fit_bin)
  expect_snapshot(print(result))
})

test_that("summary outputs the right element for horseshoe", {
  result <- summary(horseshoe_fit_bin)
  expect_snapshot(print(result))
})

Try the bonsaiforest package in your browser

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

bonsaiforest documentation built on Sept. 30, 2024, 9:46 a.m.