tests/testthat/test-t_var_test.R

# out1 <- t_var_test(mtcars, wt ~ am)
# # may be used in pipes:
# out2 <- t_var_test(mtcars, wt ~ am)
# saveRDS(list(out1=out1, out2=out2),file = 'tests/testthat/t_var_test_out.rda')
test_that("t_var_test() with defaults and options set", {
  expected <- readRDS('t_var_test_out.rda')
  expect_equal(t_var_test(mtcars, wt ~ am), expected[[1]])
  expect_equal(mtcars %>% t_var_test(wt ~ am), 
               expected[[2]])
})

Try the wrappedtools package in your browser

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

wrappedtools documentation built on Sept. 24, 2023, 5:06 p.m.