tests/testthat/test-05-regression-08-comparisons.R

# =================================================================================================
# setup
# =================================================================================================

## Original objects in env
ols <- ls()

# =================================================================================================
# comparisons
# =================================================================================================

with(persistent, {
    test_that("Compare clusterings gives the same results as references.", {
        skip_on_cran()
        local_edition(2)

        expect_known_value(comp_all, file_name(comp_all))
        expect_known_value(comp_gak, file_name(comp_gak))
        expect_known_value(comp_dba, file_name(comp_dba))
        expect_known_value(comp_sdtwc, file_name(comp_sdtwc))
    })
})

# =================================================================================================
# clean
# =================================================================================================
rm(list = setdiff(ls(), ols))

Try the dtwclust package in your browser

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

dtwclust documentation built on Sept. 11, 2024, 9:07 p.m.