tests/testthat/test-SurvivalExperiment-coercion.R

library(testthat)
library(PDATK)

data(sampleICGCmicro)

SE <- as(sampleICGCmicro, 'SummarizedExperiment')

test_that('SummarizedExperiment can be coerce to SurvivalExperiment', {
    survExp <- as(SE, 'SurvivalExperiment')
    expect_s4_class(survExp, 'SurvivalExperiment')
    expect_true(validObject(survExp))
})
bhklab/PDATK documentation built on Dec. 27, 2021, 7:46 a.m.