Skip to content

Commit

Permalink
Update test_cpdbplot_heatmap.R
Browse files Browse the repository at this point in the history
  • Loading branch information
zktuong committed Feb 17, 2024
1 parent be92f58 commit 551ad19
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions tests/testthat/test_cpdbplot_heatmap.R
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,12 @@ test_that("plot_cpdb_heatmap works2", {
})


test_that("plot_cpdb_heatmap works2", {
test_that("plot_cpdb_heatmap return table not symmetrical", {
p <- plot_cpdb_heatmap(relevant_interactions_v5, cell_types = c(
"iEVT", "PV MYH11",
"PV STEAP4", "EVT_1"
), degs_analysis = TRUE, symmetrical = FALSE)
expect_that(class(p), equals("pheatmap"))
), degs_analysis = TRUE, return_tables = TRUE, symmetrical = FALSE)
expect_true(is.list(p))
expect_true(is.matrix(p[[1]]))
expect_true(is.data.frame(p[[2]]))
})

0 comments on commit 551ad19

Please sign in to comment.