Skip to content

Commit

Permalink
added unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
lassedochreden committed Jan 5, 2024
1 parent 5fdefc8 commit dab7b7a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Package: cytoviewer
Version: 1.3.2
Version: 1.3.3
Title: An interactive multi-channel image viewer for R
Description:
This R package supports interactive visualization of multi-channel images
Expand Down
3 changes: 3 additions & 0 deletions NEWS
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,6 @@ Changes in version 1.3.1 (2024-01-04):

Changes in version 1.3.2 (2024-01-05):
+ added pixel resolution option

Changes in version 1.3.3 (2024-01-05):
+ updated README and added tests
5 changes: 4 additions & 1 deletion tests/testthat/test_cytoviewer_functions.R
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,11 @@ test_that("cytoviewer: validity check testing works", {
cur_object_3 <- pancreasSCE
colData(cur_object_3)[["CellNb"]] <- as.character(colData(cur_object_3)[["CellNb"]])

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

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

0 comments on commit dab7b7a

Please sign in to comment.