tests/testthat/test-plot_profile.R

context('plot_profile')

data(cem)
cem0 <- new_cem()

test_that('plot_profile throws an error when there are no modules', {
	expect_error(plot_profile(cem0))
})

test_that('plot_profile returns as many plots as modules', {
	cem <- plot_profile(cem)
    expect_equal(length(mod_names(cem)), length(cem@profile_plot))
})

Try the CEMiTool package in your browser

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

CEMiTool documentation built on March 13, 2021, 2 a.m.