Revision d73e4a2afcfbd6402c11716877e8f7466f309ef4 authored by Dominique Makowski on 22 October 2020, 13:40:02 UTC, committed by cran-robot on 22 October 2020, 13:40:02 UTC
1 parent 1b89ec8
test-overlap.R
context("overlap")
test_that("overlap", {
set.seed(333)
x <- distribution_normal(1000, 2, 0.5)
y <- distribution_normal(1000, 0, 1)
testthat::expect_equal(as.numeric(overlap(x, y)), 0.185, tol = 0.01)
})
Computing file changes ...