Skip to content

Commit

Permalink
try fix with copy
Browse files Browse the repository at this point in the history
  • Loading branch information
robitalec committed Sep 19, 2024
1 parent 6c9359e commit c37e9c1
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions tests/testthat/test-fusion-id.R
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,7 @@ edges <- edge_dist(
dyad_id(edges, 'ID1', 'ID2')

test_that('edges is required', {
expect_error(fusion_id(
edges = NULL
),
expect_error(fusion_id(),
'input edges required')
})

Expand Down Expand Up @@ -88,9 +86,9 @@ test_that('returns a numeric fusionID column', {
})

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

0 comments on commit c37e9c1

Please sign in to comment.