tests/testthat/test_empty.R

test_that("make_empty_hypergraph works", {
  h <- make_empty_hypergraph(10)

  expect_true(is.empty.hypergraph(h))
  expect_equal(hsize(h), 0)
  expect_equal(horder(h), 10)

  h <- make_empty_hypergraph(0)
  expect_true(is.empty.hypergraph(h))
  expect_equal(hsize(h), 0)
  expect_equal(horder(h), 0)

})

Try the HyperG package in your browser

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

HyperG documentation built on March 4, 2021, 5:06 p.m.