Skip to content

Commit

Permalink
Tweak test
Browse files Browse the repository at this point in the history
  • Loading branch information
hughjonesd committed Jun 10, 2024
1 parent 629e50f commit f7f3a11
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
2 changes: 0 additions & 2 deletions tests/testthat/test-chop.R
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ test_that("basic functionality", {
chop(x, rc_brks, lbl_seq("1"), extend = FALSE),
factor(c(1, 2, 2))
)


})


Expand Down
9 changes: 4 additions & 5 deletions tests/testthat/test-nonstandard.R
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,10 @@ test_that("character", {
chop(x, br)
)

oo <- options(santoku.warn_character = FALSE)
on.exit(options(oo))

expect_silent(
chop(x, br)
withr::with_options(list(santoku.warn_character = FALSE),
expect_silent(
chop(x, br)
)
)

# here, we think there should *always* be a warning
Expand Down

0 comments on commit f7f3a11

Please sign in to comment.