Skip to content

Commit

Permalink
update getIR unittests
Browse files Browse the repository at this point in the history
  • Loading branch information
ncborcherding committed Aug 9, 2024
1 parent f7bac08 commit 7166c3e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion R/getIR.R
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ getIR <- function(input.data,
rownames(meta) <- meta[,"barcode"]
}
if(chains %!in% c("TRA", "TRB", "TRG", "TRD", "Heavy", "Light")) {
stop("Please select one of the following chains: 'TRA', 'TRB', 'TRG', 'TRD' 'Heavy', 'Light'")
stop("Please select one of the following chains: 'TRA', 'TRB', 'TRG', 'TRD', 'Heavy', 'Light'")
}
tmp <- data.frame(barcode = rownames(meta),
str_split(meta[,"CTaa"], "_", simplify = TRUE),
Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/test-getIR.R
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ test_that("getIR works", {

expect_error(getIR(input.data = dummy_data,
chains = "invalidChain"),
"Please select one of the following chains: 'TRA', 'TRB', 'Heavy', 'Light'")
"Please select one of the following chains: 'TRA', 'TRB', 'TRG', 'TRD', 'Heavy', 'Light'")
})

test_that("Test for correct output type", {
Expand Down

0 comments on commit 7166c3e

Please sign in to comment.