tests/testthat/test_set_logicals.R

test_that("construction", {
  expect_silent(Logicals$new())
  l <- Logicals$new()
  expect_equal(l$elements, list(TRUE, FALSE))
  expect_equal(l$min, NaN)
  expect_equal(l$max, NaN)
  expect_equal(l$lower, TRUE)
  expect_equal(l$upper, FALSE)
})

Try the set6 package in your browser

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

set6 documentation built on Oct. 18, 2021, 5:06 p.m.