Skip to content

Commit

Permalink
tweak comment
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelChirico committed Sep 6, 2023
1 parent 89b882a commit 7481e5d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/testthat/test-scalar_in_linter.R
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ test_that("scalar_in_linter skips allowed usages", {
# scalars on LHS are fine (often used as `"col" %in% names(DF)`)
expect_lint("3L %in% x", NULL, linter)

# this should be NA, but it more directly uses the "always TRUE/FALSE, _not_ NA"
# this should be is.na(x), but it more directly uses the "always TRUE/FALSE, _not_ NA"
# aspect of %in%, so we delegate linting here to equals_na_linter()
expect_lint("x %in% NA", NULL, linter)
expect_lint("x %in% NA_character_", NULL, linter)
Expand Down

0 comments on commit 7481e5d

Please sign in to comment.