tests/testthat/test-function-showCommand.R

test_that("showCommand() works", {

  f <- kwb.utils:::showCommand

  expect_error(f())
  expect_output(f("/path/to/program option1 option2 file"), "Running")
})
KWB-R/kwb.utils documentation built on April 1, 2024, 7:12 a.m.