Skip to content

Commit

Permalink
tests: Adding two tests
Browse files Browse the repository at this point in the history
One of which checks the getlatlng logic
  • Loading branch information
RichardLitt committed Oct 10, 2024
1 parent a80acf4 commit cf25541
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/testthat/test-ebirdgeo.R
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
vcr::use_cassette("ebirdgeo", {
test_that("ebirdgeo works correctly", {
expect_error()
expect_no_warning('amegfi')
expect_warning(egeo <- ebirdgeo('amegfi', 42.45, -76.50, dist = 51, max = 2),
"Distance supplied was >50km")
expect_true(inherits(egeo, "data.frame"))
Expand Down

0 comments on commit cf25541

Please sign in to comment.