@@ -219,7 +219,7 @@ testthat::test_that("comments get pasted when they fall into calls", {
219219 )
220220})
221221
222- testthat :: test_that(" comments alone are pasted to the next/following call element" ,{
222+ testthat :: test_that(" comments alone are pasted to the next/following call element" , {
223223 code <- c(" x <- 5" , " # comment" , " y <- 6" )
224224 q <- eval_code(qenv(), code )
225225 testthat :: expect_identical(
@@ -232,7 +232,7 @@ testthat::test_that("comments alone are pasted to the next/following call elemen
232232 )
233233})
234234
235- testthat :: test_that(" comments at the end of src are added to the previous call element" ,{
235+ testthat :: test_that(" comments at the end of src are added to the previous call element" , {
236236 code <- c(" x <- 5" , " # comment" )
237237 q <- eval_code(qenv(), code )
238238 testthat :: expect_identical(
@@ -245,7 +245,7 @@ testthat::test_that("comments at the end of src are added to the previous call e
245245 )
246246})
247247
248- testthat :: test_that(" comments from the same line are associated with it's call" ,{
248+ testthat :: test_that(" comments from the same line are associated with it's call" , {
249249 code <- c(" x <- 5" , " y <- 4 # comment" , " z <- 5" )
250250 q <- eval_code(qenv(), code )
251251 testthat :: expect_identical(
@@ -258,7 +258,7 @@ testthat::test_that("comments from the same line are associated with it's call",
258258 )
259259})
260260
261- testthat :: test_that(" comments alone passed to eval_code are skipped" ,{
261+ testthat :: test_that(" comments alone passed to eval_code are skipped" , {
262262 code <- c(" x <- 5" , " # comment" )
263263 q <- eval_code(eval_code(qenv(), code [1 ]), code [2 ])
264264 testthat :: expect_identical(
@@ -270,4 +270,3 @@ testthat::test_that("comments alone passed to eval_code are skipped",{
270270 paste(code , collapse = " \n " )
271271 )
272272})
273-
0 commit comments