tests/testthat/test-showinf.R

context("showinf")

test_that("can run showinf without args to see help", {
  # warning because showinf returns 1 
  expect_warning(sihelp <- showinf(stderr=TRUE, stdout=TRUE))
  expect_match(paste(sihelp, collapse=""), 'showinf file')
})
jefferislab/bftools documentation built on Nov. 8, 2019, 12:30 p.m.