Skip to content

Commit 23eb8a3

Browse files
add tests
1 parent 2ed0197 commit 23eb8a3

File tree

9 files changed

+69
-0
lines changed

9 files changed

+69
-0
lines changed

tests/testthat/line_breaks_and_other/curly-in.R

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,3 +59,12 @@ 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: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,3 +53,9 @@ while (TRUE) {
5353

5454
while (TRUE) { #
5555
}
56+
57+
58+
for (i in 1:10) {}
59+
60+
61+
while (TRUE) {}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,11 @@
11
1:10 %>% # sum
22
sum()
3+
4+
5+
f %>% g()
6+
7+
8+
9+
10+
11+
h %>% i()
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,8 @@
11
1:10 %>% # sum
22
sum()
3+
4+
5+
f %>% g()
6+
7+
8+
h %>% i()

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

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

13+
14+
15+
16+
1317
call(
1418
x = 2,
1519
1,

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

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

11+
1112
call(
1213
x = 2,
1314
1,
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#' Empty line in examples
2+
#'
3+
#' @examples
4+
1
5+
6+
7+
8+
9+
10+
11+
#' Empty line in examples
12+
#'
13+
#' @examples
14+
#' \dontrun{
15+
#' }
16+
2
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#' Empty line in examples
2+
#'
3+
#' @examples
4+
1
5+
6+
7+
#' Empty line in examples
8+
#'
9+
#' @examples
10+
#' \dontrun{
11+
#'
12+
#' }
13+
2
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# NB: DO NOT EDIT. Auto-generated by ./tests/dev/generate_roxygen_tests.R.
2+
3+
test_that("analogous to test-roxygen-examples-complete: 30", {
4+
expect_warning(test_collection("roxygen-examples-complete", "^30-", transformer = style_text), NA)
5+
})

0 commit comments

Comments
 (0)