tests/testthat/test_ids.R

context("id special chars")


test_that("problem / algo ids", {
  reg = makeTestRegistry()
  expect_error(addProblem(reg, id="."), "comply with")
  expect_error(addProblem(reg, id=".foo"), "comply with")
  expect_error(addProblem(reg, id="-foor"), "comply with")

  expect_error(addAlgorithm(reg, id="."), "comply with")
  expect_error(addAlgorithm(reg, id=".foo"), "comply with")
  expect_error(addAlgorithm(reg, id="-foobar"), "comply with")
})

Try the BatchExperiments package in your browser

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

BatchExperiments documentation built on March 21, 2022, 5:06 p.m.