Skip to content

Commit

Permalink
Add more tests for plot_AbanicoPlot()
Browse files Browse the repository at this point in the history
  • Loading branch information
RLumSK committed Dec 30, 2024
1 parent 8af24ba commit 02b3860
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion tests/testthat/test_plot_AbanicoPlot.R
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ test_that("Test examples from the example page", {
layout = "journal"))

## trigger a few test cases related to layout
layout$abanico$colour$centrality <- 1:20
layout$abanico$colour$centrality <- 1:2
expect_silent(plot_AbanicoPlot(data = ExampleData.DeValues,
layout = "journal"))

Expand Down Expand Up @@ -307,6 +307,15 @@ test_that("more coverage", {
), log.z = TRUE, rotate = TRUE))
par(mfrow = c(1,1))

## test centrality from layout
layout <- get_Layout("default")

## trigger a few test cases related to layout
layout$abanico$colour$centrality <- 1:2
expect_silent(
plot_AbanicoPlot(data = list(ExampleData.DeValues, ExampleData.DeValues),
layout = layout))

})

test_that("Test graphical snapshot", {
Expand All @@ -321,3 +330,4 @@ test_that("Test graphical snapshot", {
})

})

0 comments on commit 02b3860

Please sign in to comment.