Skip to content

Commit

Permalink
metadata test on lints
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelChirico committed Nov 12, 2023
1 parent 911bee7 commit cc69cb6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/testthat/test-stopifnot_all_linter.R
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ test_that("stopifnot_all_linter skips allowed usages", {
test_that("stopifnot_all_linter blocks simple disallowed usages", {
expect_lint(
"stopifnot(all(A))",
rex::rex("stopifnot(x) runs all() 'under the hood'"),
list(rex::rex("stopifnot(x) runs all() 'under the hood'"), column_number = 11L),
stopifnot_all_linter()
)

expect_lint(
"stopifnot(x, y, all(z))",
rex::rex("stopifnot(x) runs all() 'under the hood'"),
list(rex::rex("stopifnot(x) runs all() 'under the hood'"), column_number = 17L),
stopifnot_all_linter()
)
})

0 comments on commit cc69cb6

Please sign in to comment.