Skip to content

Commit

Permalink
lintr
Browse files Browse the repository at this point in the history
  • Loading branch information
strengejacke committed Feb 7, 2024
1 parent bdee115 commit 4ac2417
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/testthat/test-data_tabulate.R
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ test_that("data_tabulate data.frame", {

test_that("data_tabulate print", {
set.seed(123)
x <- sample(1:3, 1e6, TRUE)
x <- sample.int(3, 1e6, TRUE)
out <- data_tabulate(x, name = "Large Number")
expect_identical(
attributes(out),
Expand Down Expand Up @@ -149,7 +149,7 @@ test_that("data_tabulate print multiple", {

test_that("data_tabulate big numbers", {
set.seed(123)
x <- sample(1:5, size = 1e7, TRUE)
x <- sample.int(5, size = 1e7, TRUE)
expect_snapshot(data_tabulate(x))
expect_snapshot(print(data_tabulate(x), big_mark = "-"))
})
Expand Down

0 comments on commit 4ac2417

Please sign in to comment.