@@ -452,7 +452,6 @@ testthat::test_that(
452452# comments --------------------------------------------------------------------------------------------------------
453453
454454testthat :: test_that(" comments fall into proper calls" , {
455-
456455 # If comment is on top, it gets moved to the first call.
457456 # Any other comment gets moved to the call above.
458457 code <- "
@@ -468,16 +467,16 @@ testthat::test_that("comments fall into proper calls", {
468467 q <- qenv() | > eval_code(code )
469468 testthat :: expect_identical(
470469 get_code(q ),
471- c(" a <- 1 # initial comment" ,
470+ c(
471+ " a <- 1 # initial comment" ,
472472 " b <- 2 # inline comment" ,
473473 " c <- 3 # inbetween comment" ,
474- " d <- 4 # finishing comment" )
474+ " d <- 4 # finishing comment"
475+ )
475476 )
476-
477477})
478478
479479testthat :: test_that(" comments get pasted when they fall into calls" , {
480-
481480 # If comment is on top, it gets moved to the first call.
482481 # Any other comment gets moved to the call above.
483482 # Comments get pasted if there are two assigned to the same call.
@@ -494,13 +493,13 @@ testthat::test_that("comments get pasted when they fall into calls", {
494493 q <- qenv() | > eval_code(code )
495494 testthat :: expect_identical(
496495 get_code(q ),
497- c(" a <- 1 # initial comment # A comment" ,
496+ c(
497+ " a <- 1 # initial comment # A comment" ,
498498 " b <- 2 # inline comment" ,
499499 " c <- 3 # C comment # inbetween comment" ,
500500 " d <- 4 # finishing comment"
501501 )
502502 )
503-
504503})
505504
506505# functions -------------------------------------------------------------------------------------------------------
0 commit comments