Skip to content

Commit

Permalink
test timegroup required
Browse files Browse the repository at this point in the history
  • Loading branch information
robitalec committed Aug 22, 2023
1 parent aa3f12d commit 1630f4c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tests/testthat/test-pts.R
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,19 @@ test_that('DT is required', {
'input DT required')
})

test_that('ID and coords column names, threshold correctly provided',
test_that('ID, coord column names, time, threshold provided correctly',
{
expect_error(group_pts(DT, threshold = 10, id = NULL),
'ID field required')

expect_error(group_pts(DT, threshold = NULL, id = 'ID'),
'threshold required')

expect_error(group_pts(DT, threshold = 10, id = 'ID',
timegroup = NULL,
coords = c('X', 'Y')),
'timegroup required')

expect_error(
group_pts(
DT,
Expand Down

0 comments on commit 1630f4c

Please sign in to comment.