tests/testthat/test-bug71.R

withr::with_output_sink("test-bug71.Rout", {

test_that("bug71.evaluator", {

  target.runner <- function(experiment, scenario)
    list(cost = runif(1), call = toString(experiment))

    parameters <- readParameters(text = '
algorithm       "--"                 c          (as,mmas,eas,ras,acs)
')
    scenario <- checkScenario(list(
      targetRunner = target.runner,
      maxExperiments = 200, instances = runif(10),
      initConfigurations = data.frame(algorithm="as"),
     parameters = parameters))
    expect_true(irace:::checkTargetFiles(scenario = scenario))
})

}) # withr::with_output_sink()

Try the irace package in your browser

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

irace documentation built on April 3, 2025, 10:03 p.m.