Skip to content

Commit

Permalink
Remove unname to test if two objects equal
Browse files Browse the repository at this point in the history
  • Loading branch information
HediaTnani committed Jan 8, 2024
1 parent 5fb0760 commit e23a839
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"))

# Temporarily remove row names for comparison
expect_equal(unname(original_results), unname(altered_results))
# Test if two objects equal
expect_equal(original_results, altered_results)
})

0 comments on commit e23a839

Please sign in to comment.