tests/testthat/test_pars.R

context("Plot type parameters")

test_that("Valid pars detects correctly", {
    expect_true(valid_par("pch", "dot"))
    expect_false(valid_par("pch", "dot", "inference"))
    expect_false(valid_par("pch", "hex"))

    expect_true(valid_par("unknown", "dot"))
    expect_warning(expect_true(valid_par("pch", "unknown")))
})
iNZightVIT/iNZightPlots documentation built on May 4, 2024, 6:18 a.m.