Skip to content

Commit

Permalink
tests
Browse files Browse the repository at this point in the history
  • Loading branch information
strengejacke committed Aug 13, 2023
1 parent 7678616 commit 9aa2be1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/testthat/test-row_means.R
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ test_that("row_means", {

test_that("row_means, errors or messages", {
data(iris)
expect_error(expect_warning(row_means(iris, select = "abc")), regex = "No columns")
expect_error(row_means(5, min_valid = 1), regex = "`data` must be")
expect_error(row_means(iris[1], min_valid = 1), regex = "two numeric")
expect_error(row_means(iris, min_valid = NULL), regex = "numeric value")
Expand Down

0 comments on commit 9aa2be1

Please sign in to comment.