tests/testthat/test-discog.R

test_that("discog hasn't changed", {
  expect_snapshot_value(discog, style = "json2")
})

test_that("discog JSON gives rise to same list as the built-in", {
  skip_if_not_installed("jsonlite")
  expect_identical(
    discog,
    jsonlite::fromJSON(discog_json(), simplifyVector = FALSE)
  )
})

Try the repurrrsive package in your browser

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

repurrrsive documentation built on Dec. 28, 2022, 2:34 a.m.