Skip to content

Commit 8b0faa3

Browse files
[skip style] [skip vbump] Restyle files
1 parent 38bd16f commit 8b0faa3

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

tests/testthat/test-qenv_get_code.R

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -452,7 +452,6 @@ testthat::test_that(
452452
# comments --------------------------------------------------------------------------------------------------------
453453

454454
testthat::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

479479
testthat::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

Comments
 (0)