tests/testthat/test-mkonfound.r

context("Checking mkonfound")

test_that("mkonfound produces table", {
    d <- mkonfound(mkonfound_ex, t, df)
    expect_is(d, "data.frame")
})

test_that("mkonfound produces plot", {
    p <- mkonfound(mkonfound_ex, t, df, return_plot = TRUE)
    p
    expect_s3_class(p, "ggplot")
})
jrosen48/konfound documentation built on Sept. 3, 2024, 2:02 a.m.