tests/testthat/test-repo_string_as_named_list.R

test_that("repo_string_as_named_list() works", {
  expect_equal(
    repo_string_as_named_list('ropensci|https://ropensci.r-universe.dev|ddsjoberg|https://ddsjoberg.r-universe.dev'),
    list(ropensci = "https://ropensci.r-universe.dev",
         ddsjoberg = "https://ddsjoberg.r-universe.dev")
  )

  expect_equal(
    repo_string_as_named_list(NULL),
    list()
  )
})

Try the rstudio.prefs package in your browser

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

rstudio.prefs documentation built on July 16, 2022, 5:07 p.m.