tests/testthat/test-normal-dist.R

context("normal-dist")

test_that("dist_norm_plot throws the appropriate warning", {
  expect_warning(dist_norm_plot(), 'vistributions')
})

test_that("dist_norm_prob throws the appropriate warning", {
  expect_warning(dist_norm_prob(3.78, mean = 2, sd = 1.36), 'vistributions')
})

test_that("dist_norm_perc throws the appropriate warning", {
  expect_warning(dist_norm_perc(0.95, mean = 2, sd = 1.36), 'vistributions')
})

Try the descriptr package in your browser

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

descriptr documentation built on Feb. 1, 2020, 9:07 a.m.