From 3c041c899f539fbefb435e3f50b0c560d6ed5281 Mon Sep 17 00:00:00 2001 From: HediaTnani Date: Fri, 12 Jan 2024 14:53:43 -0500 Subject: [PATCH] remove the expect_error for Test for rownames starting with "ENST" --- tests/testthat/test-DEqual.R | 6 ------ 1 file changed, 6 deletions(-) diff --git a/tests/testthat/test-DEqual.R b/tests/testthat/test-DEqual.R index b52efe0..44bd3da 100644 --- a/tests/testthat/test-DEqual.R +++ b/tests/testthat/test-DEqual.R @@ -36,12 +36,6 @@ test_that("output is a ggplot", { test_that("DEqual correctly processes random_de", { # If random_de is correctly structured and all rownames start with "ENST", expect no error expect_silent(DEqual(random_de)) - # For testing the error condition, altered manually rownames of random_de - altered_random_de <- random_de - rownames(altered_random_de)[1] <- "INVALID0001" # Change the first rowname to an invalid one - - # Expect an error when rownames do not start with "ENST" - expect_error(DEqual(altered_random_de), "The rownames of the input dataframe should be either GENCODE or ENSEMBL transcript IDs.") }) # Test: None of the DE rownames are in degradation_tstats rownames