Skip to content

Commit

Permalink
Remove '<<-' from valid operators for this test
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelChirico authored Feb 3, 2025
1 parent 662542a commit a2af76b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/testthat/test-assignment_linter.R
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ test_that("arguments handle <<- and ->/->> correctly", {
lint_msg_right <- rex::rex("Replace ->> by assigning to a specific environment")

expect_lint("1 -> blah", rex::rex("Use one of <-, <<- for assignment, not ->."), linter)
expect_lint("1 ->> blah", lint_msg_right, linter)
expect_lint("1 ->> blah", lint_msg_right, assignment_linter(operator = "<-"))

# <<- is only blocked optionally
expect_lint("1 <<- blah", NULL, linter)
Expand Down

0 comments on commit a2af76b

Please sign in to comment.