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/PanCuRx documentation built on Dec. 30, 2021, 4:59 p.m.