Skip to content

Commit 2dc20e5

Browse files
committed
Update SingleR unit tests so it works for all versions of SingleR
1 parent 7730f3b commit 2dc20e5

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

tests/testthat/test-cellTypeLabeling.R

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@ test_that(desc = "Testing SingleR", {
1616
sce <- runSingleR(sce)
1717
testthat::expect_true("SingleR_hpca_main_scores" %in% names(colData(sce)))
1818
testthat::expect_true("SingleR_hpca_main_labels" %in% names(colData(sce)))
19-
#testthat::expect_true("SingleR_hpca_main_first.labels" %in% names(colData(sce)))
20-
#testthat::expect_true("SingleR_hpca_main_delta.next" %in% names(colData(sce)))
19+
testthat::expect_true("SingleR_hpca_main_first.labels" %in% names(colData(sce)) | "SingleR_hpca_main_delta.next" %in% names(colData(sce)))
2120
testthat::expect_true("SingleR_hpca_main_pruned.labels" %in% names(colData(sce)))
2221
})
2322
})

0 commit comments

Comments
 (0)