Skip to content

Commit

Permalink
Use pkg::function in tests
Browse files Browse the repository at this point in the history
See #86
  • Loading branch information
damianooldoni committed Jun 26, 2024
1 parent 837d40a commit 920543d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/testthat/test-gbif_verify_keys.R
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ test_that("output type and content", {
)

# input is a df
keys2 <- tibble(
keys2 <- dplyr::tibble(
key = keys1,
other = sample.int(40, size = length(keys1))
)
Expand All @@ -72,7 +72,7 @@ test_that("output type and content", {
output4 <- gbif_verify_keys(keys4)

# output expected
output_keys <- tibble(
output_keys <- dplyr::tibble(
key = c(
12323785387253, 172331902,
1000693, 1000310
Expand Down Expand Up @@ -130,7 +130,7 @@ test_that("function works even with duplicated taxon keys", {

# expected output
expected_output_with_duplicates <-
tibble(
dplyr::tibble(
key = as.numeric(keys_with_duplicates),
is_taxonKey = rep(c(FALSE, TRUE, TRUE, TRUE), 2),
is_from_gbif_backbone = rep(c(NA, FALSE, TRUE, TRUE), 2),
Expand Down

0 comments on commit 920543d

Please sign in to comment.