From 415555cb39785e55eb583ebcfd2f43c241b476f7 Mon Sep 17 00:00:00 2001 From: HediaTnani Date: Mon, 8 Jan 2024 13:37:15 -0500 Subject: [PATCH] Remove the rownames in both results original and altered and check with expect_equal --- tests/testthat/test-getDegTx.R | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/testthat/test-getDegTx.R b/tests/testthat/test-getDegTx.R index 314ecbe..76fdf4f 100644 --- a/tests/testthat/test-getDegTx.R +++ b/tests/testthat/test-getDegTx.R @@ -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)) }) \ No newline at end of file