tests/testthat/test-methods-as.IntervalData.R

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

## Tests for as.IntervalData() function

test_that("as.IntervalData works", {
  expect_equal(as.IntervalData(1), IntervalData(1, 1))
})

test_that("as.IntervalData does not work", {
  expect_error(as.IntervalData(c(1, 2)))
})

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.