tests/testthat/test-output-selections.R

sim <- loadTestSimulation("S1")

outputSelections <- sim$outputSelections
# OutputSelections

test_that("It remove all outputs when outputs are cleared", {
  addOutputs("Organism|Weight", sim)
  expect_gt(length(outputSelections$allOutputs), 0)

  outputSelections$clear()
  expect_equal(length(outputSelections$allOutputs), 0)
})

test_that("It can print the output selections", {
  expect_snapshot(outputSelections$print())
})
Open-Systems-Pharmacology/OSPSuite-R documentation built on June 10, 2025, 6:54 a.m.