tests/testthat/test-plotPcElbow.R

objects <- list(
    "Seurat" = objs[["Seurat"]]
    ## > "cell_data_set" = objs[["cell_data_set"]]
)
elbows <- list(
    "Seurat" = 10L
    ## > "cell_data_set" = 16L
)

test_that("plotPcElbow", {
    Map(
        object = objects,
        elbow = elbows,
        f = function(object, elbow) {
            x <- plotPcElbow(object)
            expect_identical(
                object = attr(x, "elbow"),
                expected = elbow
            )
        }
    )
})
steinbaugh/pointillism documentation built on Oct. 13, 2023, 10:43 p.m.