tests/testthat/test_calculateFDR.R

context("FDR")

test_that("Basic tests", {
  expect_that(calculateFDR(0.9, matrix(rep(1,100),10), FALSE), equals(1))
  expect_that(calculateFDR(1.0, matrix(rep(1,100),10), FALSE), equals(1))
  expect_that(calculateFDR(1.1, matrix(rep(1,100),10), FALSE), equals(0))
})

Try the ROTS package in your browser

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

ROTS documentation built on Nov. 8, 2020, 7:37 p.m.