Skip to content

Commit

Permalink
test: use all.equal to compare dataframes
Browse files Browse the repository at this point in the history
  • Loading branch information
kelly-sovacool committed Dec 28, 2023
1 parent c8b37e7 commit f75c49f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/testthat/test-deseq2.R
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ test_that("create_deseq_obj works", {
dds_dex <- DESeq2::DESeq(dds, fitType = "local")
res <- DESeq2::results(dds_dex)
res_dat <- res %>% as.data.frame()
expect_equal(
expect_true(all.equal(
res_dat %>% dplyr::filter(baseMean > 30),
structure(
list(
Expand Down Expand Up @@ -89,5 +89,5 @@ test_that("create_deseq_obj works", {
"ENSG00000182670.13"
)
)
)
))
})

0 comments on commit f75c49f

Please sign in to comment.