tests/testthat/test-wrapper-scale.R

# library(testthat)
#

#
# test_that("check continuous scale wrapper", {
#   scaleExp = Scale$new(Exponential$new())
#   expect_message(decorate(scaleExp, CoreStatistics))
#   expect_equal(round(scaleExp$genExp(), 5), 0)
#   expect_equal(round(scaleExp$variance(), 5), 1)
# })
#
# test_that("check discrete scale wrapper", {
#   discreteTesterScaled = Scale$new(discreteTester)
#   expect_equal(round(discreteTesterScaled$expectation(), 5), 0)
#   expect_equal(round(discreteTesterScaled$variance(), 5), 1)
# })

Try the distr6 package in your browser

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

distr6 documentation built on March 28, 2022, 1:05 a.m.