tests/testthat/test-class_design.R

df <- get_design("blocking")
parsed_df <- parse_design(df)

test_that("show method works", {
  expect_no_error(capture_message(show(parsed_df)))
})

test_that("mapping method returns the mapping", {
  map <- parsed_df@mapping
  expect_equal(map, mapping(parsed_df))
})

test_that("trial method works", {
  expect_no_error(trials(parsed_df))
})

Try the calmr package in your browser

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

calmr documentation built on June 8, 2025, 1:03 p.m.