tests/testthat/test-oc_build_url.R

## Test oc_build_url ##

test_that("oc_build_url returns a string", {
  expect_type(
    oc_build_url(
      query_par = list(placename = "Haarlem"),
      endpoint = "json"
    ),
    "character"
  )
})

Try the opencage package in your browser

Any scripts or data that you put into this service are public.

opencage documentation built on Feb. 20, 2021, 1:06 a.m.