tests/testthat/test-methods-mean.R

## This file is part of the IntervalQuestionStat package for R

## Tests for mean() function

test_that("mean works", {
  list <- IntervalList(c(2, 4), c(4, 6))
  expect_equal(mean(list), IntervalData(3, 5))
})

Try the IntervalQuestionStat package in your browser

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

IntervalQuestionStat documentation built on Nov. 1, 2022, 5:06 p.m.