tests/testthat/test-src-print-output.R

test_that("test src_yaml print", {
  out <- trimws(utils::capture.output(src_yaml(example_yaml())))
  expect_equal(out, "Model yaml object")
})


test_that("test src_file print", {
  out <- trimws(utils::capture.output(src_file(example_app_path())))
  expect_equal(out, "Model file object")
})

Try the supreme package in your browser

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

supreme documentation built on July 8, 2020, 7:18 p.m.