Skip to content

Commit

Permalink
added a few more tets, bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
sckott committed Dec 1, 2015
1 parent 78f7e78 commit b0d1cd7
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 6 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Description: Retrieve, map and summarize data from the 'VertNet.org' archives.
Functions allow searching by many parameters, including 'taxonomic' names,
places, and dates. In addition, there is an interface for conducting spatially
delimited searches, and another for requesting large 'datasets' via email.
Version: 0.4.0.9200
Version: 0.4.0.9300
Author: Scott Chamberlain [aut, cre], Chris Ray [aut], Vijay Barve [aut]
Maintainer: Scott Chamberlain <myrmecocystus@gmail.com>
License: MIT + file LICENSE
Expand Down
2 changes: 1 addition & 1 deletion man/bigsearch.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 9 additions & 4 deletions man/vert_id.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 14 additions & 0 deletions tests/testthat/test-vertmap.R
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,20 @@ test_that("vertmap works with vertsearch", {
expect_is(map1$mapping$x, "name")
})

test_that("vertmap works for maps not distinguished by color", {
skip_on_cran()

out <- vertsearch("mustela nigripes", verbose = FALSE, limit = 50)
out$data$scientificname <- NULL
map1 <- vertmap(input = out, mapdatabase = "state")

expect_is(map1, "gg")
expect_is(map1$data, "data.frame")
expect_null(map1$labels$colour) # the difference here
expect_equal(as.character(map1$mapping$x), "long")
expect_is(map1$mapping$x, "name")
})

test_that("vertmap fails well", {
skip_on_cran()

Expand Down

0 comments on commit b0d1cd7

Please sign in to comment.