Skip to content

Commit

Permalink
add test
Browse files Browse the repository at this point in the history
  • Loading branch information
lassedochreden committed Jan 5, 2024
1 parent dab7b7a commit e6f161e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/testthat/test_cytoviewer_functions.R
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,13 @@ test_that("cytoviewer: validity check testing works", {
cur_object_3 <- pancreasSCE
colData(cur_object_3)[["CellNb"]] <- as.character(colData(cur_object_3)[["CellNb"]])

expect_error(cytoviewer(mask = pancreasMasks,
object = cur_object_3,
img_id = "ImageNb",
cell_id = "CellNb"),
regexp = "Cell ids should only contain numeric integer values.",
fixed = TRUE)

cur_object_4 <- pancreasSCE
colData(cur_object_4)[["CellNb"]][1] <- 824.1

Expand Down

0 comments on commit e6f161e

Please sign in to comment.