tests/testthat/test-shared-clonality-functions.R

context("Shared Clonality Functions")

data(wu_subset)

test_that("scatter_plot works", {
    testthat::expect_type(barcodetrackR::scatter_plot(wu_subset[, 1:2]), "list")
})
# > Test passed 🥳

test_that("cor_plot works", {
    testthat::expect_type(barcodetrackR::cor_plot(wu_subset[, 1:3]), "list")
    testthat::expect_s3_class(barcodetrackR::cor_plot(wu_subset[, 1:3], return_table = TRUE), "data.frame")
})
# > Test passed 🥳

test_that("chord_diagram works", {
    testthat::expect_type(barcodetrackR::chord_diagram(wu_subset[, 1:3]), "list")
    testthat::expect_s3_class(barcodetrackR::chord_diagram(wu_subset[, 1:3], return_table = TRUE), "data.frame")
})
# > Test passed 🥳
d93espinoza/barcodetrackR documentation built on April 28, 2021, 1:58 p.m.