tests/testthat/test-set_model_options.R

test_that("set_model_options works", {
  expect_error(
    set_model_options(metric = "manhattan"),
    "'arg' should be one of"
  )

  expect_error(
    set_model_options(error_model = "sturm liouville"),
    "'arg' should be one of"
  )

  expect_s3_class(set_model_options(), "BayesMallowsModelOptions")
})

Try the BayesMallows package in your browser

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

BayesMallows documentation built on Sept. 11, 2024, 5:31 p.m.