Skip to content

Commit

Permalink
up
Browse files Browse the repository at this point in the history
  • Loading branch information
TuomasBorman committed Oct 14, 2023
1 parent 82c0d80 commit 614984b
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions tests/testthat/test-plotCCA.R
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,8 @@ test_that("plot RDA/CCA", {
expect_no_error(plotRDA(tse, "RDA"))

# Wrong-entry scenarios
expect_error(plotRDA(tse, "RDA", colour_by = "wrong colname"),
"'colour_by' must match the name of a column in colData.")
expect_error(plotRDA(tse, "RDA", colour_by = "cohort", shape_by = "wrong colname"),
"'shape_by' must match the name of a column in colData.")
expect_error(plotRDA(tse, "RDA", colour_by = "wrong colname"))
expect_error(plotRDA(tse, "RDA", colour_by = "cohort", shape_by = "wrong colname"))
expect_error(plotRDA(tse, "RDA", add.ellipse = "invalid value"),
"'add.ellipse' must be one of c(TRUE, FALSE, 'fill', 'color', 'colour').",
fixed = TRUE)
Expand Down

0 comments on commit 614984b

Please sign in to comment.