tests/testthat/test-drop.R

context("drop argument for rows works as it should")

test_that("when drop is TRUE, length of ExperimentList is correct", {
    expect_true(length(mae[FALSE, , , drop = TRUE]) == 0L)
})
test_that("when drop is FALSE, length is the same", {
    expect_true(length(mae[FALSE, , , drop = FALSE]) == length(mae))
})

context("drop arugment for columns works as it should")

test_that("when drop is TRUE, length of ExperimentList is correct", {
    expect_true(length(mae[, FALSE, , drop = TRUE]) == 0L)
})
test_that("when drop is FALSE, length is the same", {
    expect_true(length(mae[, FALSE, , , drop = FALSE]) == length(mae))
})

Try the MultiAssayExperiment package in your browser

Any scripts or data that you put into this service are public.

MultiAssayExperiment documentation built on Nov. 8, 2020, 8:10 p.m.