tests/testthat/test-namespace-env.R

test_that("respects version separator", {
  ns <- create_ns_env(test_path("testVersionSep"))
  withr::defer(unregister_namespace("testVersionSep"))

  expect_equal(getNamespaceInfo(ns, "spec")[["version"]], "0.0.0-9000")
})

Try the pkgload package in your browser

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

pkgload documentation built on June 28, 2024, 5:07 p.m.