tests/testthat/test_head2tailratio.R

library(PCRedux)

context("head2tailratio")

test_that("head2tailratio gives the correct dimensions and properties", {
  library(qpcR)
  res <- head2tailratio(y = competimer[, 2], normalize = FALSE, slope_normalizer = TRUE)
  res_normalized <- head2tailratio(y = competimer[, 2], normalize = TRUE, slope_normalizer = TRUE)

  expect_that(res, is_a("numeric"))
  expect_that(res_normalized, is_a("numeric"))
  expect_that(res <= 3.589284, is_true())
  expect_that(res_normalized >= 23, is_true())
})

Try the PCRedux package in your browser

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

PCRedux documentation built on May 11, 2022, 5:18 p.m.