Skip to content

Commit e843fd5

Browse files
create a new test collection instead of modifying existing tests
1 parent a59d4bb commit e843fd5

18 files changed

+190
-56
lines changed

tests/testthat/line_breaks_and_other/curly-in.R

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -59,12 +59,3 @@ while (TRUE){
5959

6060
while (TRUE){#
6161
}
62-
63-
64-
for (i in 1:10) {}
65-
66-
67-
68-
69-
70-
while (TRUE) {}

tests/testthat/line_breaks_and_other/curly-out.R

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,3 @@ while (TRUE) {
5353

5454
while (TRUE) { #
5555
}
56-
57-
58-
for (i in 1:10) {}
59-
60-
61-
while (TRUE) {}
Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,2 @@
11
1:10 %>% # sum
22
sum()
3-
4-
5-
f %>% g()
6-
7-
8-
9-
10-
11-
h %>% i()
12-
13-
14-
15-
16-
17-
# some comment
18-
19-
20-
21-
22-
j %>% k()
Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,2 @@
11
1:10 %>% # sum
22
sum()
3-
4-
5-
f %>% g()
6-
7-
8-
h %>% i()
9-
10-
11-
# some comment
12-
13-
14-
j %>% k()

tests/testthat/line_breaks_fun_call/blank-non-strict-in.R

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,6 @@ call(
1010
1
1111
)
1212

13-
14-
15-
16-
1713
call(
1814
x = 2,
1915
1,

tests/testthat/line_breaks_fun_call/blank-non-strict-out.R

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,6 @@ call(
88
1
99
)
1010

11-
12-
13-
14-
1511
call(
1612
x = 2,
1713
1,
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
1 + 1
3+
}
4+
5+
6+
7+
8+
9+
### some comment
10+
11+
12+
13+
14+
{
15+
NULL
16+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
1 + 1
3+
}
4+
5+
6+
### some comment
7+
8+
9+
{
10+
NULL
11+
}
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
for (i in 1:10) {}
2+
3+
4+
5+
6+
7+
8+
# some comment
9+
10+
11+
12+
13+
14+
while (TRUE) {}
15+
16+
17+
18+
19+
# some comment
20+
if (TRUE) NULL
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
for (i in 1:10) {}
2+
3+
4+
# some comment
5+
6+
7+
while (TRUE) {}
8+
9+
10+
# some comment
11+
if (TRUE) NULL

0 commit comments

Comments
 (0)