Skip to content

Commit

Permalink
Accept missmatch of site = "any *" (#73; forestgeo/fgeo.biomass#31).
Browse files Browse the repository at this point in the history
  • Loading branch information
maurolepore committed Mar 27, 2019
1 parent ac6bd55 commit 1cfadfb
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/testthat/test-master.R
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,15 @@ test_that("master_tidy() returns correct column types", {
)
})

test_that("master() outputs sits that can be matched in `sites_info` (#79)", {
test_that(
"master() sites match `sites_info$site` (#79),
except 'any*' (fgeo.biomass#31)", {
master_sites <- sort(unique(master()$site))
all_sites <- sort(unique(allodb::sites_info$site))

# Sites in master that don't match sites in `sites_info`
missmatching_sites <- setdiff(master_sites, all_sites)
expect_equal(length(missmatching_sites), 0L)
expect_equal(missmatching_sites, "any temperate na")
})

test_that("master outputs lowercase values of site (#79)", {
Expand Down

0 comments on commit 1cfadfb

Please sign in to comment.