Skip to content

Commit 4b12010

Browse files
add a test that mixes LBB with (
1 parent 2a98c4d commit 4b12010

File tree

3 files changed

+41
-27
lines changed

3 files changed

+41
-27
lines changed

tests/testthat/indention_square_brackets/square_brackets_double_line_break-in.R

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,20 @@ a[[
2626

2727
2
2828

29+
2930
]]
3031

32+
3133
a[[
3234

33-
2
34-
]]
35+
# this comment shouldn't mess
36+
1, c(
37+
38+
1, 2
39+
40+
# neither should this one
41+
42+
)
3543

36-
a[[
37-
2
3844

3945
]]

tests/testthat/indention_square_brackets/square_brackets_double_line_break-in_tree

Lines changed: 25 additions & 19 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/testthat/indention_square_brackets/square_brackets_double_line_break-out.R

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,12 @@ a[[
2626
2
2727
]]
2828

29-
a[[
30-
2
31-
]]
3229

3330
a[[
34-
2
31+
# this comment shouldn't mess
32+
1, c(
33+
1, 2
34+
35+
# neither should this one
36+
)
3537
]]

0 commit comments

Comments
 (0)