Skip to content

Commit 7848039

Browse files
correct non-strict mode test
1 parent e843fd5 commit 7848039

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,23 @@
11
f <- function() NULL
22

33

4+
5+
6+
7+
8+
9+
410
g <- function() NULL
511

612

13+
14+
715
f()
816

917
# comment
1018

1119

20+
21+
22+
1223
g()

tests/testthat/test-line_breaks_top_level_exprs.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ test_that("extra line breaks between braced expressions are removed", {
2424

2525
test_that("extra line breaks are not removed in non-strict mode", {
2626
expect_no_warning(
27-
test_collection("line_breaks_top_level_exprs", "non_strict", transformer = style_text)
27+
test_collection("line_breaks_top_level_exprs", "non_strict", transformer = style_text, strict = FALSE)
2828
)
2929
})
3030

0 commit comments

Comments
 (0)