Skip to content

Commit 1e25681

Browse files
committed
pr: apply suggestions (remove duplicate test)
1 parent 620849b commit 1e25681

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

tests/testthat/test-qenv_eval_code.R

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,6 @@ testthat::test_that("eval_code doesn't have access to environment where it's cal
1515
)
1616
})
1717

18-
testthat::test_that("@.xData in qenv is always a sibling of .GlobalEnv", {
19-
q1 <- qenv()
20-
testthat::expect_identical(parent.env(q1@.xData), parent.env(.GlobalEnv))
21-
22-
q2 <- eval_code(q1, quote(a <- 1L))
23-
testthat::expect_identical(parent.env(q2@.xData), parent.env(.GlobalEnv))
24-
q3 <- eval_code(q2, quote(b <- 2L))
25-
testthat::expect_identical(parent.env(q3@.xData), parent.env(.GlobalEnv))
26-
})
27-
2818
testthat::test_that("getting object from the package namespace works even if library in the same call", {
2919
testthat::expect_s4_class(
3020
eval_code(

0 commit comments

Comments
 (0)