Skip to content

Commit 0f20544

Browse files
committed
fix obvious
1 parent defa490 commit 0f20544

File tree

2 files changed

+1
-8
lines changed

2 files changed

+1
-8
lines changed

tests/testthat/test-qenv-class.R

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,10 @@ testthat::describe("methods::new(qenv)", {
1010
expect_true(environmentIsLocked(as.environment(methods::new("qenv", .xData = new_env))))
1111
})
1212

13-
testthat::it("throws error when id and code length doesn't match", {
14-
expect_error(methods::new("qenv", id = 1L), "@code and @id slots must have the same length\\.")
15-
})
16-
1713
testthat::it("throws error when .xData is not an environment", {
1814
expect_error(methods::new("qenv", .xData = 2), "Must be an environment, not 'double'\\.")
1915
})
2016

21-
testthat::it("throws error when code is not language or character object", {
22-
expect_error(methods::new("qenv", code = 2), "`code` must be a character or language object\\.")
23-
})
2417
testthat::it("initialized qenv(s) have different environments", {
2518
testthat::expect_false(identical(qenv()@.xData, qenv()@.xData))
2619
})

tests/testthat/test-qenv_eval_code.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ testthat::test_that("eval_code evaluates the code in the qenvs environment", {
77

88
testthat::test_that("eval_code locks the environment", {
99
q <- eval_code(qenv(), quote(iris1 <- iris))
10-
testthat::expect_identical(isEnvironmentLocked(q2@.xData))
10+
testthat::expect_true(environmentIsLocked(q@.xData))
1111
})
1212

1313
testthat::test_that("eval_code doesn't have access to environment where it's called", {

0 commit comments

Comments
 (0)