tests/testthat/test-plotQuadPosition.R

library(testthat)

test_that("test that ploting valid vector
          doesn't cause error", {
  expect_equal(typeof(plotQuadPosition(c(10, 20, 30, 20, 10),
                                       "test title")), "list")
})

test_that("test that attempting to plot empty dataframe
          causes error", {
  expect_error(plotQuadPosition(c(), "test quad plot"))
})
RyDe4/ChIPanalyzer documentation built on Sept. 1, 2023, 9:18 a.m.