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")
})
osorensen/BayesMallows documentation built on Feb. 13, 2025, 5:29 a.m.