Skip to content

Commit

Permalink
fix unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
rcannood committed Oct 24, 2024
1 parent 46d8672 commit 64f7023
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/testthat/test-Seurat.R
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ test_that("to_Seurat with inmemoryanndata", {
)
# running to_seurat when ad0$X is null probably doesn't make any sense
ad0 <- AnnData(
X = matrix(1L, nrow = 5, ncol = 10),
obs = data.frame(row.names = letters[1:5]),
var = data.frame(row.names = LETTERS[1:10])
)
Expand Down Expand Up @@ -40,8 +41,8 @@ test_that("to_Seurat with inmemoryanndata", {
# trackstatus: class=Seurat, feature=test_get_var, status=done
active_assay <- seu@assays[[seu@active.assay]]
for (var_key in colnames(dummy$var)) {
expect_true(var_key %in% colnames(active_assay@meta.features))
expect_equal(active_assay@meta.features[[var_key]], dummy$var[[var_key]])
expect_true(var_key %in% colnames(active_assay@meta.data))
expect_equal(active_assay@meta.data[[var_key]], dummy$var[[var_key]])
}
})

Expand Down

0 comments on commit 64f7023

Please sign in to comment.