Skip to content

Commit

Permalink
add tests
Browse files Browse the repository at this point in the history
  • Loading branch information
IndrajeetPatil committed Nov 28, 2024
1 parent 2ed0197 commit 23eb8a3
Show file tree
Hide file tree
Showing 9 changed files with 69 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/testthat/line_breaks_and_other/curly-in.R
Original file line number Diff line number Diff line change
Expand Up @@ -59,3 +59,12 @@ while (TRUE){

while (TRUE){#
}


for (i in 1:10) {}





while (TRUE) {}
6 changes: 6 additions & 0 deletions tests/testthat/line_breaks_and_other/curly-out.R
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,9 @@ while (TRUE) {

while (TRUE) { #
}


for (i in 1:10) {}


while (TRUE) {}
9 changes: 9 additions & 0 deletions tests/testthat/line_breaks_and_other/pipe_and_comment-in.R
Original file line number Diff line number Diff line change
@@ -1,2 +1,11 @@
1:10 %>% # sum
sum()


f %>% g()





h %>% i()
6 changes: 6 additions & 0 deletions tests/testthat/line_breaks_and_other/pipe_and_comment-out.R
Original file line number Diff line number Diff line change
@@ -1,2 +1,8 @@
1:10 %>% # sum
sum()


f %>% g()


h %>% i()
4 changes: 4 additions & 0 deletions tests/testthat/line_breaks_fun_call/blank-non-strict-in.R
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ call(
1
)





call(
x = 2,
1,
Expand Down
1 change: 1 addition & 0 deletions tests/testthat/line_breaks_fun_call/blank-non-strict-out.R
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ call(
1
)


call(
x = 2,
1,
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#' Empty line in examples
#'
#' @examples
1






#' Empty line in examples
#'
#' @examples
#' \dontrun{
#' }
2
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#' Empty line in examples
#'
#' @examples
1


#' Empty line in examples
#'
#' @examples
#' \dontrun{
#'
#' }
2
5 changes: 5 additions & 0 deletions tests/testthat/test-roxygen-examples-complete-30.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# NB: DO NOT EDIT. Auto-generated by ./tests/dev/generate_roxygen_tests.R.

test_that("analogous to test-roxygen-examples-complete: 30", {
expect_warning(test_collection("roxygen-examples-complete", "^30-", transformer = style_text), NA)
})

0 comments on commit 23eb8a3

Please sign in to comment.