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")
})

Try the PureCN package in your browser

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

PureCN documentation built on Nov. 8, 2020, 5:37 p.m.