tests/testthat/test_plotAbs.R

context("plotAbs")

test_that("Exceptions happen with wrong input", {
    data(purecn.example.output)
    expect_error( plotAbs(purecn.example.output, id = "hello", "BAF"), 
        "No solution with id hello")
    expect_error( plotAbs(purecn.example.output, id = 100, "BAF"), 
        "No solution with id 100")
})
lima1/PureCN documentation built on June 15, 2025, 5:30 a.m.