tests/testthat/test-parse_cookies.R

test_that("coorkie parsing works!", {
  EXAMPLE_COOKIE <- "foo=bar; baz=quux"
  EXPECTED_RESULT <- list(foo = "bar", baz = "quux")
  result <- parse_cookies(EXAMPLE_COOKIE)
  testthat::expect_equal(result, EXPECTED_RESULT)
})

Try the tapLock package in your browser

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

tapLock documentation built on Oct. 30, 2024, 9:13 a.m.