tests/testthat/test-smoothers.R

test_that("smoothers() returns a character vector", {
        expect_vector(smoothers(), character())
})

test_that("info() is defined for all smoothers", {
        for (smoother in smoothers())
                capture_output( expect_error(info(smoother), NA) )
})

test_that("info() returns NULL, invisibly", {
        capture_output( expect_invisible(info("sbo")) )
        capture_output( expect_null(info("sbo")) )
})

Try the kgrams package in your browser

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

kgrams documentation built on Oct. 6, 2023, 5:06 p.m.