tests/testthat/test-plot_benchmark_bar.R

test_that("plot_benchmark_bar works", {
    bench_res <- read.csv(system.file(package = "orthogene", "benchmark/bench_res_example.csv"))
    bench_barplot <- plot_benchmark_bar(
        bench_res = bench_res,
        remove_failed_times = TRUE
    )
    testthat::expect_equal(methods::is(bench_barplot, "patchwork"), TRUE)
})
neurogenomics/orthogene documentation built on Jan. 30, 2024, 4:44 a.m.