tests/testthat/test-getQuadCoveragePercentage.R

library(testthat)

test_that("getQuadCoveragePercentage returns correct percentages", {
  expect_equal(getQuadCoveragePercentage(
    matrix(c(0, 1, 0, 1, 1, 1, 0, 0, 0), ncol = 3)), c((1/3)*100,
                                                          100.00000,
                                                          0.00000))
})
RyDe4/ChIPanalyzer documentation built on Sept. 1, 2023, 9:18 a.m.