tests/testthat/test-matchSampleColumn.R

test_that("matchSampleColumn", {
    expect_identical(
        object = matchSampleColumn(
            object = SummarizedExperiment(
                colData = DataFrame(
                    "sampleId" = "XXX",
                    "sampleID" = "XXX",
                    "sampleid" = "XXX",
                    "sample" = "XXX"
                )
            )
        ),
        expected = "sampleId"
    )
    expect_null(
        object = matchSampleColumn(
            object = DataFrame(
                "aaa" = "AAA",
                "bbb" = "BBB"
            )
        )
    )
})
acidgenomics/r-acidexperiment documentation built on Jan. 17, 2024, 7:56 p.m.