tests/testthat/test-gPAD.R

test_that("test gPAD utility functions", {
  expect_equal(as.numeric(paste(to.binom(1000), collapse = "")), as.numeric(paste(rev(as.integer(intToBits(1000))), collapse="")))
  expect_error(to.binom(1000, n=3))

  parse.intersection(to.binom(1000))
  to.intersection(1000)
  to.intersection(c(999, 1000))

})

Try the gMCPLite package in your browser

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

gMCPLite documentation built on May 29, 2024, 7:38 a.m.