Skip to content

Commit 2a28677

Browse files
committed
superlintr
1 parent bae23a2 commit 2a28677

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

tests/testthat/test-qenv_get_code.R

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -290,13 +290,14 @@ testthat::describe("get_code for specific names", {
290290
)
291291
}
292292
)
293-
testthat::it("doesn't consider function called on the lhs as a dependent in this call (dependency in further calls)",
294-
{
295-
code <- c(
296-
"object_list <- list(x = iris, y = iris)",
297-
"object_list_2 <- list(x = mtcars, y = mtcars)",
298-
"object_list_2[c('x')] <- c('string')",
299-
"object_list[c('x')] <- c('string')"
293+
testthat::it(
294+
"doesn't consider function called on the lhs as a dependent in this call (dependency in further calls)",
295+
{
296+
code <- c(
297+
"object_list <- list(x = iris, y = iris)",
298+
"object_list_2 <- list(x = mtcars, y = mtcars)",
299+
"object_list_2[c('x')] <- c('string')",
300+
"object_list[c('x')] <- c('string')"
300301
)
301302
q <- eval_code(qenv(), code = code)
302303
result <- get_code(q, names = "object_list")

0 commit comments

Comments
 (0)