tests/testthat/test_state_type.R

context("state_type")
test_that(
    desc = "understands the default value of type = 7", {
        x = 1:100
        expect_equal(
            SampleQuantiles$new(x)$type, 7
        )
    }
)
test_that(
    desc = "understands the user input value of type", {
        x = 1:100
        expect_equal(
            SampleQuantiles$new(x, type = 8)$type, 8
        )
    }
)

Try the cvcqv package in your browser

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

cvcqv documentation built on Aug. 6, 2019, 5:10 p.m.