Skip to content

Commit

Permalink
Increase min.pct in test
Browse files Browse the repository at this point in the history
  • Loading branch information
jaisonj708 authored Mar 5, 2021
1 parent 1fac8c3 commit 1466909
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/testthat/test_differential_expression.R
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ test_that("min.pct works", {
expect_gte(min(apply(X = results, MARGIN = 1, FUN = function(x) max(x[3], x[4]))), 0.5)
})

results <- expect_warning(FindMarkers(object = pbmc_small, ident.1 = 0, ident.2 = 1, min.pct = 1.0, verbose = FALSE, base = exp(1)))
results <- expect_warning(FindMarkers(object = pbmc_small, ident.1 = 0, ident.2 = 1, min.pct = 2.0, verbose = FALSE, base = exp(1)))
test_that("min.pct warns when none met", {
expect_equal(nrow(x = results), 0)
})
Expand Down

0 comments on commit 1466909

Please sign in to comment.