Skip to content

Commit

Permalink
Remove the rownames in both results original and altered and check wi…
Browse files Browse the repository at this point in the history
…th expect_equal
  • Loading branch information
HediaTnani committed Jan 8, 2024
1 parent 62eb390 commit 415555c
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 @@ -62,6 +62,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"))

# Test if the results are equal
expect_equal(original_results, altered_results)
# Temporarily remove row names for comparison
expect_equal(unname(original_results), unname(altered_results))
})

0 comments on commit 415555c

Please sign in to comment.