Skip to content

Commit

Permalink
more n max missing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
robitalec committed Sep 19, 2024
1 parent 41512e4 commit 8a1b454
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions tests/testthat/test-fusion-id.R
Original file line number Diff line number Diff line change
Expand Up @@ -238,4 +238,26 @@ test_that('n_max_missing returns expected number of unique fusionIDs', {
3
)

expect_equal(
fusion_id(
edges_expected,
threshold = threshold,
n_min_length = 2,
n_max_missing = 1,
allow_split = TRUE
)[, uniqueN(fusionID, na.rm = TRUE)],
2
)

expect_equal(
fusion_id(
edges_expected,
threshold = threshold,
n_min_length = 2,
n_max_missing = 1,
allow_split = TRUE
)[!is.na(fusionID), .N, fusionID][, max(N)],
5
)

})

0 comments on commit 8a1b454

Please sign in to comment.