Skip to content

Commit 0a1c8b6

Browse files
also add test for mixing [ and (
1 parent 4b12010 commit 0a1c8b6

File tree

3 files changed

+40
-35
lines changed

3 files changed

+40
-35
lines changed

tests/testthat/indention_square_brackets/square_brackets_line_break-in.R

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -63,21 +63,25 @@ x[
6363

6464
]
6565

66+
6667
x[
6768

6869
a,
6970
b
70-
]
7171

72-
x[
73-
a,
74-
b
7572

7673
]
7774

7875
x[
7976

80-
a,
81-
b
77+
# this comment shouldn't be an issue
78+
1, c(
79+
80+
1, 2
81+
82+
# neither should this one
83+
84+
)
85+
8286

8387
]

tests/testthat/indention_square_brackets/square_brackets_line_break-in_tree

Lines changed: 24 additions & 23 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_line_break-out.R

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -60,17 +60,17 @@ x[
6060
# or below shouldn't be an issue
6161
]
6262

63-
x[
64-
a,
65-
b
66-
]
6763

6864
x[
6965
a,
7066
b
7167
]
7268

7369
x[
74-
a,
75-
b
70+
# this comment shouldn't be an issue
71+
1, c(
72+
1, 2
73+
74+
# neither should this one
75+
)
7676
]

0 commit comments

Comments
 (0)