Skip to content

Commit f9fef18

Browse files
averissimogogonzo
andauthored
Update tests/testthat/test-qenv-class.R
Co-authored-by: Dawid Kałędkowski <[email protected]> Signed-off-by: André Veríssimo <[email protected]>
1 parent 903a43c commit f9fef18

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/testthat/test-qenv-class.R

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,7 @@ testthat::describe("methods::new(qenv)", {
2121
testthat::it("throws error when code is not language or character object", {
2222
expect_error(methods::new("qenv", code = 2), "`code` must be a character or language object\\.")
2323
})
24+
testthat::it("initialized qenv(s) have different environments", {
25+
testthat::expect_false(identical(qenv()@.xData, qenv()@.xData))
26+
})
2427
})

0 commit comments

Comments
 (0)