Skip to content

Commit

Permalink
normal can go outside range
Browse files Browse the repository at this point in the history
  • Loading branch information
wlangera committed Sep 9, 2024
1 parent a63530b commit de1dbac
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion tests/testthat/test-grid_designation.R
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,8 @@ test_that("number of observations be the same as output if aggregate = FALSE", {
})
expect_equal(grid_designation(observations_sf2, grid = grid_df1,
randomisation = "normal",
aggregate = FALSE) %>%
aggregate = FALSE,
seed = 123) %>%
nrow(),
nrow(observations_sf2))
})
Expand Down
2 changes: 0 additions & 2 deletions tests/testthat/test-sample_from_binormal_circle.R
Original file line number Diff line number Diff line change
Expand Up @@ -211,8 +211,6 @@ test_that("distance to new point falls within coordinate uncertainty", {
})

# in case of provided initial coordinateUncertaintyInMeters column
## no seed
expect_true(test_smaller_distances(observations_sf2))
## different seeds
expect_true(test_smaller_distances(observations_sf2, seed = 123))
expect_true(test_smaller_distances(observations_sf2, seed = 456))
Expand Down
3 changes: 3 additions & 0 deletions tests/testthat/test-sample_from_uniform_circle.R
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,9 @@ test_that("distance to new point falls within coordinate uncertainty", {
})

# in case of provided initial coordinateUncertaintyInMeters column
## no seed
expect_true(test_smaller_distances(observations_sf2))
## different seeds
expect_true(test_smaller_distances(observations_sf2, seed = 123))
expect_true(test_smaller_distances(observations_sf2, seed = 456))
})

0 comments on commit de1dbac

Please sign in to comment.