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")
})
r-pkgs/pkgload documentation built on May 5, 2024, 10:30 a.m.