Skip to content

Commit

Permalink
remove the expect_error for Test for rownames starting with "ENST"
Browse files Browse the repository at this point in the history
  • Loading branch information
HediaTnani committed Jan 12, 2024
1 parent efabfff commit 3c041c8
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions tests/testthat/test-DEqual.R
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3c041c8

Please sign in to comment.