Skip to content

Commit

Permalink
test: Added tests for exoticCategory
Browse files Browse the repository at this point in the history
  • Loading branch information
RichardLitt committed Oct 3, 2024
1 parent df81638 commit aba9865
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/testthat/test-ebirdchecklist.R
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@ vcr::use_cassette("ebirdchecklist", {
expect_true('audioCounts' %in% colnames(out2))
expect_equal(nrow(out2), 2)

# Returns exoticCategory or doesn't, depending on whether it is in the checklist
expect_true('exoticCategory' %in% colnames(out1))
expect_false('exoticCategory' %in% colnames(out2))


})

test_that("ebirdchecklist errors for bad input", {
Expand Down

0 comments on commit aba9865

Please sign in to comment.