Skip to content

Commit

Permalink
adds unit test for #24 #25
Browse files Browse the repository at this point in the history
  • Loading branch information
maelle committed Jan 16, 2018
1 parent ae1dcc9 commit b8d7dda
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/testthat/test-opencage_get.R
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,11 @@ test_that("opencage_get returns a response object",{
key = Sys.getenv("OPENCAGE_KEY"))),
"response")
})

test_that("opencage_get returns a response object for Namibia NA countrycode",{
skip_on_cran()
expect_is(opencage_get(list(placename = "Windhoek",
key = Sys.getenv("OPENCAGE_KEY"),
country = "NA")),
"response")
})

0 comments on commit b8d7dda

Please sign in to comment.