tests/testthat/test-blocks.R

library("testthat")
library("permute")

context("Testing blocks() and Blocks()")

test_that("Blocks() returns a list with 'strata'", {
    f <- gl(4, 10)
    b <- Blocks(f)
    expect_is(b, "list")
    expect_true("strata" %in% names(b))
})

Try the permute package in your browser

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

permute documentation built on March 18, 2022, 7:36 p.m.