tests/testthat/test-namespace-env.R

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

  expect_equal(getNamespaceInfo(ns, "spec")[["version"]], "0.0.0-9000")
})
r-lib/pkgload documentation built on Nov. 6, 2024, 11:15 p.m.