tests/testthat/test-helpers.R

context("helpers")

trail <- "string with trail////"

test_that("helpers functions return expectd values", {
  expect_equal(dk(), "api/dataset/node")
  expect_equal(dkfiles(), "sites//default//files")
  expect_equal(notrail(trail), "string with trail")
})

Try the dkanr package in your browser

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

dkanr documentation built on May 1, 2019, 7:31 p.m.