tests/testthat/test-source.R

test_that("no error has occurred", {
  nt <- c("A", "G", "C", "T")
  seq_len <- 15
  seq_n <- c(15, 19)
  # Create data
  c1 <- replicate(seq_n[1],
                  paste(sample(nt, seq_len, replace = TRUE), collapse = ''))
  c2 <- replicate(seq_n[2],
                  paste(sample(nt, seq_len, replace = TRUE), collapse = ''))
  # Execute function
  expect_identical(cr_source(c1, c2), NULL)
})

Try the RepertoiR package in your browser

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

RepertoiR documentation built on Oct. 25, 2021, 9:09 a.m.