Skip to content

Commit 5e5eb3a

Browse files
committed
Adapt tests
1 parent b153445 commit 5e5eb3a

File tree

5 files changed

+61
-51
lines changed

5 files changed

+61
-51
lines changed

tests/testthat/fun_dec/line_break_fun_dec-out.R

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,9 @@ a <- function(x,
4040
}
4141

4242
a <- function(
43-
#
44-
x,
45-
y) {
43+
#
44+
x,
45+
y
46+
) {
4647
x - 1
4748
}

tests/testthat/indention_operators/eq_formals_complex_indention-out.R

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,27 @@
11
function(a =
2-
33,
3-
b
4-
) {}
2+
33,
3+
b
4+
) {}
55

66
function(a =
7-
33,
8-
b) {}
7+
33,
8+
b) {}
99

1010
function(a,
11-
b,
12-
c
13-
) {}
11+
b,
12+
c
13+
) {}
1414

1515
function(a,
16-
b,
17-
c) {}
16+
b,
17+
c) {}
1818

1919
function(ss,
20-
a =
21-
3,
22-
er =
23-
4
24-
) {}
20+
a =
21+
3,
22+
er =
23+
4
24+
) {}
2525

2626
function(a =
2727
b,

tests/testthat/indention_operators/eq_formals_complex_tokens-out.R

Lines changed: 22 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,34 @@
11
function(
2-
a =
3-
33,
4-
b) {}
2+
a =
3+
33,
4+
b
5+
) {}
56

67
function(
7-
a =
8-
33,
9-
b) {}
8+
a =
9+
33,
10+
b
11+
) {}
1012

1113
function(
12-
a,
13-
b,
14-
c) {}
14+
a,
15+
b,
16+
c
17+
) {}
1518

1619
function(
17-
a,
18-
b,
19-
c) {}
20+
a,
21+
b,
22+
c
23+
) {}
2024

2125
function(
22-
ss,
23-
a =
24-
3,
25-
er =
26-
4) {}
26+
ss,
27+
a =
28+
3,
29+
er =
30+
4
31+
) {}
2732

2833
function(a =
2934
b,

tests/testthat/indention_operators/eq_sub_complex_indention-out.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ b
1010
# multiple nested levels
1111
{
1212
v <- function(x =
13-
122,
14-
y) {
13+
122,
14+
y) {
1515
}
1616
}
1717

tests/testthat/unindention/mixed-double-out.R

Lines changed: 18 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -37,29 +37,33 @@ function(x,
3737

3838
# double
3939
function(
40-
x,
41-
y) {
40+
x,
41+
y
42+
) {
4243
1
4344
}
4445

4546

4647
function(
47-
x,
48-
y,
49-
k) {
48+
x,
49+
y,
50+
k
51+
) {
5052
1
5153
}
5254

5355

5456
function(
55-
x,
56-
y) {
57+
x,
58+
y
59+
) {
5760
1
5861
}
5962

6063

6164
function(
62-
x, y) {
65+
x, y
66+
) {
6367
1
6468
}
6569

@@ -72,23 +76,23 @@ function(x,
7276

7377
# last brace
7478
function(
75-
x, y) {
79+
x, y) {
7680
NULL
7781
}
7882

7983
function(
80-
x, y) {
84+
x, y) {
8185
NULL
8286
}
8387

8488
function(
85-
x,
86-
y) {
89+
x,
90+
y) {
8791
NULL
8892
}
8993

9094
function(
91-
x,
92-
y) {
95+
x,
96+
y) {
9397
NULL
9498
}

0 commit comments

Comments
 (0)