tests/testthat/test-getSubregionalUrls.R

context("getSubregionalUrls")

testthat::test_that("Test that getSubregionalUrls can construct the expected output", {
  out <- getSubregionalUrls(path = "hi/",
                            areas = c('there', 'Their', "over there"))

  testthat::expect_equal(names(out), c("there", "Their", "over there"))
  testthat::expect_equal(unname(out), c("hi/there/","hi/their/", "hi/over-there/"))
})

Try the RtD3 package in your browser

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

RtD3 documentation built on Nov. 8, 2020, 4:22 p.m.