tests/testthat/test-methods-length.R

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

## Tests for length function

test_that("length works", {
  list <- IntervalList(c(0, 2, 5), c(1, 6, 10))
  expect_equal(length(list), as.integer(3))
})

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.