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 Nov. 21, 2024, 4:42 a.m.