Skip to content

Commit b2a0dd7

Browse files
committed
store test results in parent environment for reuse in later tests
1 parent 019afb8 commit b2a0dd7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/testthat/test-destrand.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -256,10 +256,10 @@ myobj_test <- methRead(files,
256256
mincov=1)
257257

258258
test_that("test if unite with destranding works as tabix", {
259-
expect_is(meth_test_db <- unite(myobj_test, destrand=TRUE, min.per.group=1L, chunk.size = 1e1, save.db = TRUE), "methylBaseDB")
259+
expect_is(meth_test_db <<- unite(myobj_test, destrand=TRUE, min.per.group=1L, chunk.size = 1e1, save.db = TRUE), "methylBaseDB")
260260
})
261261
test_that("test if unite with destranding works in memory and as tabix", {
262-
expect_is(meth_test_mem <- unite(myobj_test, destrand=TRUE, min.per.group=1L, chunk.size = 1e1, save.db = FALSE), "methylBase")
262+
expect_is(meth_test_mem <<- unite(myobj_test, destrand=TRUE, min.per.group=1L, chunk.size = 1e1, save.db = FALSE), "methylBase")
263263
})
264264
test_that("test if output of unite with destranding is the same in memory and as tabix", {
265265
expect_identical(getData(meth_test_mem), getData(meth_test_db))

0 commit comments

Comments
 (0)