Skip to content

Commit

Permalink
test returns data.table
Browse files Browse the repository at this point in the history
  • Loading branch information
robitalec committed Oct 3, 2024
1 parent aaea2af commit b4c2974
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/testthat/test-centroid-group.R
Original file line number Diff line number Diff line change
Expand Up @@ -67,3 +67,7 @@ test_that('two columns added to the result DT', {
expect_equal(ncol(copyDT) + 2,
ncol(centroid_group(DT, coords = coords)))
})

test_that('returns a data.table', {
expect_s3_class(centroid_group(DT, coords = coords), 'data.table')
})

0 comments on commit b4c2974

Please sign in to comment.