tests/testthat/test_check_confidence.R

context("Check confidence")

test_that("Checking check_confidence",{
  
  #Check that for positive values of meancft and meanrr gives TRUE
  expect_error({
    check.confidence(-1)
  })
  
  expect_true({
    confidence <- runif(1, 0, 100)
    check.confidence(confidence)
    })
  
})

Try the pifpaf package in your browser

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

pifpaf documentation built on May 1, 2019, 9:11 p.m.