Skip to content

Commit

Permalink
correct non-strict mode test
Browse files Browse the repository at this point in the history
  • Loading branch information
IndrajeetPatil committed Dec 3, 2024
1 parent e843fd5 commit 7848039
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
11 changes: 11 additions & 0 deletions tests/testthat/line_breaks_top_level_exprs/non_strict-out.R
Original file line number Diff line number Diff line change
@@ -1,12 +1,23 @@
f <- function() NULL








g <- function() NULL




f()

# comment





g()
2 changes: 1 addition & 1 deletion tests/testthat/test-line_breaks_top_level_exprs.R
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ test_that("extra line breaks between braced expressions are removed", {

test_that("extra line breaks are not removed in non-strict mode", {
expect_no_warning(
test_collection("line_breaks_top_level_exprs", "non_strict", transformer = style_text)
test_collection("line_breaks_top_level_exprs", "non_strict", transformer = style_text, strict = FALSE)
)
})

0 comments on commit 7848039

Please # to comment.