tests/testthat/test_list_oml_measures.R

skip_on_cran()

test_that("list_oml_measures", {
  tab = list_oml_measures()
  expect_data_table(tab, min.rows = 60)

  expect_names(names(tab),
    type = "strict",
    must.include = "measure"
  )

  expect_subset(c("precision", "recall"), tab$measure)
})

# Test server not working properly
# test_that("list_oml_measures", {
#   tab = list_oml_measures(test_server = TRUE)
#   expect_data_table(tab)
# })

Try the mlr3oml package in your browser

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

mlr3oml documentation built on Aug. 26, 2025, 5:08 p.m.