tests/testthat/test-get_url.R

test_that("get_url works", {
  base = "http://localhosthost:3000"
  url = get_url(base)
  expect_true(url == base)
  e = paste0(base, "?dark=false&hideCharts=false")
  url = get_url(base, dark = "false", hideCharts = "false")
  expect_true(url == e)
})

Try the tgver package in your browser

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

tgver documentation built on Sept. 30, 2022, 5:06 p.m.