Skip to content

Commit

Permalink
use expect_identical instead of expect_equal
Browse files Browse the repository at this point in the history
  • Loading branch information
HediaTnani committed Jan 8, 2024
1 parent 4948bfa commit 41e1e6b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/testthat/test-getDegTx.R
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,6 @@ test_that("getDegTx works with original and altered row names", {
rownames(altered_covComb_tx_deg) <- gsub("\\..*", "", rownames(covComb_tx_deg))
altered_results <- getDegTx(altered_covComb_tx_deg,sig_transcripts =select_transcripts("cell_component"))
rownames(altered_results) <- rownames(original_results)
# Test if two objects equal
expect_equal(original_results, altered_results)
# Test if two objects identical
expect_identical(original_results, altered_results)
})

0 comments on commit 41e1e6b

Please sign in to comment.