Skip to content

Commit

Permalink
new regression test
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelChirico committed Aug 1, 2023
1 parent 56d18a6 commit c41169a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/testthat/test-infix_spaces_linter.R
Original file line number Diff line number Diff line change
Expand Up @@ -185,3 +185,7 @@ test_that("native pipe is supported", {
expect_lint("a |> foo()", NULL, linter)
expect_lint("a|>foo()", rex::rex("Put spaces around all infix operators."), linter)
})

test_that("mixed unary & binary operators aren't mis-lint", {
expect_lint("-1-1", rex::rex("Put spaces around all infix operators."), infix_spaces_linter())
})

0 comments on commit c41169a

Please sign in to comment.