Skip to content

Commit

Permalink
add test
Browse files Browse the repository at this point in the history
  • Loading branch information
chantelwetzel-noaa committed Aug 29, 2024
1 parent ff96c0c commit a57d146
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/testthat/test-data.R
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,16 @@ test_that("pull_bio_triennial", {
expect_is(dat, "list")
expect_equal(nrow(dat[[1]]), 1596)
expect_equal(nrow(dat[[2]]), 382)

dat <- pull_bio(
common_name = "quillback rockfish",
years = c(1980, 2004),
survey = "Triennial",
verbose = TRUE
)
expect_is(dat, "list")
expect_equal(nrow(dat[[1]]), 48)
expect_equal(dat[[2]], "no_ages_available")
})

test_that("pull_biological_samples", {
Expand Down

0 comments on commit a57d146

Please sign in to comment.