Skip to content

Commit

Permalink
more tests...
Browse files Browse the repository at this point in the history
  • Loading branch information
CATALYST-project committed Nov 11, 2024
1 parent 24a7197 commit 644483b
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 6 deletions.
12 changes: 6 additions & 6 deletions man/SpatialData.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions tests/testthat/test_methods.R
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,14 @@ test_that("set one", {
m <- length(get(paste0(f, "s"))(x))
expect_true(m == (n-1))
}
obj <- list(
ImageArray(), LabelArray(),
ShapeFrame(), PointFrame(),
SingleCellExperiment())
mapply(f=fun, o=obj, t=typ, \(f, o, t) {
x <- get(paste0(f, "<-"))(x, i=".", value=o)
expect_is(get(f)(x, "."), t)
})
})

test_that("get nms", {
Expand Down

0 comments on commit 644483b

Please sign in to comment.