Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
jpquast committed Nov 2, 2024
1 parent 75ba857 commit 2ea6229
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/testthat/test-workflow.R
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ test_that("calculate_diff_abundance works", {
expect_equal(round(min(diff_mean_sd$adj_pval, na.rm = TRUE), digits = 9), 0.00758761)
expect_equal(round(min(diff_proDA$adj_pval, na.rm = TRUE), digits = 5), 0.00125)

if (packageVersion("limma") < "3.61.8") {
if (packageVersion("limma") >= "3.61.8") {
expect_equal(round(min(diff_moderated$adj_pval, na.rm = TRUE), digits = 9), 3.87e-05)
} else {
expect_equal(round(min(diff_moderated$adj_pval, na.rm = TRUE), digits = 9), 5.76e-05)
Expand Down

0 comments on commit 2ea6229

Please sign in to comment.