tests/testthat/test-get_url.R

test_that("get_url_github() works", {

  expect_identical(get_url_github(), "https://github.com")
  expect_identical(get_url_github("a/b"), "https://github.com/a/b")
  expect_identical(get_url_github("a", "b"), "https://github.com/a/b")
})

Try the codemetar package in your browser

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

codemetar documentation built on Sept. 3, 2022, 1:06 a.m.