tests/testthat/test-countAdultsInRadius.R

context("countAdultsInRadius")

test_that("countAdultsInRadius functions correctly", {
  expect_equal(countAdultsInRadius(c(1,2), data.frame(x=c(1:5), y=c(1:5)), 6), 5)
})
ecology-rocks/disperseR documentation built on May 15, 2019, 7:58 p.m.