tests/testthat/test-global-settings.R

test_that("Names for settings are as expected", {
  expect_snapshot(ospsuiteUtilsSettingNames)
})

test_that("Check that values for package environment bindings are correct", {
  expect_error(
    getOSPSuiteUtilsSetting("xyz"),
    "No global setting with the name 'xyz' exists."
  )

  expect_equal(getOSPSuiteUtilsSetting("packageName"), "ospsuite.utils")
  expect_equal(getOSPSuiteUtilsSetting("suiteName"), "Open Systems Pharmacology")
  expect_equal(getOSPSuiteUtilsSetting("formatNumericsDigits"), 2L)
})

Try the ospsuite.utils package in your browser

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

ospsuite.utils documentation built on March 18, 2022, 6:44 p.m.