Skip to content

Commit

Permalink
add test
Browse files Browse the repository at this point in the history
  • Loading branch information
strengejacke committed Feb 13, 2024
1 parent 62ded15 commit 03b2d0e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/testthat/test-data_tabulate.R
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,12 @@ test_that("data_tabulate data.frame", {
})


test_that("data_tabulate unsupported class", {
data(mtcars)
expect_warning(data_tabulate(lm(mpg ~ hp, data = mtcars)), regex = "Can't compute frequency tables")
})


test_that("data_tabulate print", {
set.seed(123)
x <- sample.int(3, 1e6, TRUE)
Expand Down

0 comments on commit 03b2d0e

Please sign in to comment.