tests/testthat/test_plots.R

# Test Graphs
# 20181030 by JJAV
# # # # # # # # # #

context("Test for graphs")
# This check the code run but to check if the graph is what you want you must 
# see them


test_that("The ggDISTRIBUTION function works", {
  expect_true(inherits(ggDISTRIBUTION(new_NORMAL(0, 1)), "ggplot"))
  expect_true(inherits(ggDISTRIBUTION(new_DIRICHLET(c(10, 20, 70))), "ggplot"))
})

test_that("The plot.DESCRIPTION function works", {
  expect_silent(plot(new_NORMAL(0,1)))
  expect_silent(plot(new_DIRICHLET(c(10, 20, 30))))
})

Try the convdistr package in your browser

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

convdistr documentation built on April 20, 2021, 9:06 a.m.