tests/testthat/test_entropy.R

context("Length of the value returned by the entropy() function.")

test_that("test if entropy() returns a numerical value", {
    expect_length(entropy(), 1)
})

Try the sglg package in your browser

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

sglg documentation built on Sept. 4, 2022, 9:05 a.m.