Skip to content

Commit

Permalink
trim_some
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelChirico committed Aug 1, 2023
1 parent bf390de commit 9b528d0
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions tests/testthat/test-keyword_quote_linter.R
Original file line number Diff line number Diff line change
Expand Up @@ -213,14 +213,14 @@ test_that("keyword_quote_linter blocks quoted $, @ extractions", {

test_that("multiple lints are generated correctly", {
expect_lint(
c(
"{",
" foo('a' = 1)",
" 'b' <- 2",
" x$'c'",
" y@'d'",
"}"
),
trim_some('
{
foo("a" = 1)
"b" <- 2
x$"c"
y@"d"
}
'),
list(
list(message = "Only quote named arguments"),
list(message = "Only quote targets of assignment"),
Expand Down

0 comments on commit 9b528d0

Please sign in to comment.