Skip to content

Commit

Permalink
test msg overwritten column if already present
Browse files Browse the repository at this point in the history
  • Loading branch information
robitalec committed Sep 19, 2024
1 parent 66a88bb commit 7f67947
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/testthat/test-fusion-id.R
Original file line number Diff line number Diff line change
Expand Up @@ -86,3 +86,11 @@ test_that('returns a numeric fusionID column', {
)), 'fusionID')
expect_type(edges$fusionID, 'integer')
})

test_that('message if fusionID column already present, overwritten', {
edges[, fusionID := 42]
expect_message(fusion_id(
edges = edges,
threshold = 50
), 'fusionID column will be overwritten by this function')
})

0 comments on commit 7f67947

Please sign in to comment.