Skip to content

Commit acfd9a4

Browse files
record status quo
1 parent 9824e7f commit acfd9a4

File tree

7 files changed

+145
-0
lines changed

7 files changed

+145
-0
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
call(
2+
3+
4+
1
5+
)
6+
7+
call(
8+
# comment
9+
10+
1
11+
)
12+
13+
call(
14+
x = 2,
15+
1,
16+
17+
"w"
18+
)

tests/testthat/line_breaks_fun_call/blank-non-strict-in_tree

Lines changed: 31 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
call(
2+
3+
4+
1
5+
)
6+
7+
call(
8+
# comment
9+
10+
1
11+
)
12+
13+
call(
14+
x = 2,
15+
1,
16+
17+
"w"
18+
)
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
call(
2+
3+
4+
1
5+
)
6+
7+
call(
8+
# comment
9+
10+
1
11+
)
12+
13+
call(
14+
x = 2,
15+
1,
16+
17+
"w"
18+
)

tests/testthat/line_breaks_fun_call/blank-strict-in_tree

Lines changed: 31 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
call(
2+
1
3+
)
4+
5+
call(
6+
# comment
7+
8+
1
9+
)
10+
11+
call(
12+
x = 2,
13+
1,
14+
15+
"w"
16+
)

tests/testthat/test-line_breaks_fun_call.R

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,19 @@ test_that("line breaks work in general", {
1111
), NA)
1212
})
1313

14+
test_that("blank lines in function calls are removed for strict = TRUE", {
15+
expect_warning(test_collection("line_breaks_fun_call",
16+
"blank-strict",
17+
transformer = style_text
18+
), NA)
19+
20+
expect_warning(test_collection("line_breaks_fun_call",
21+
"blank-non-strict",
22+
transformer = style_text
23+
), NA)
24+
})
25+
26+
1427
test_that("line breaks are not applied with non-strict", {
1528
expect_warning(test_collection("line_breaks_fun_call",
1629
"token_dependent_complex_non_strict",

0 commit comments

Comments
 (0)