Skip to content

Commit

Permalink
...
Browse files Browse the repository at this point in the history
  • Loading branch information
be-marc committed Dec 10, 2024
1 parent 15f9e76 commit 50a26df
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/testthat/test_CallbackEvaluation.R
Original file line number Diff line number Diff line change
Expand Up @@ -91,14 +91,15 @@ test_that("writing to learner$state works", {
walk(rr$learners, function(learner) {
expect_equal(learner$state$test, 1)
})
expect_null(rr$data_extra)

# benchmark result
design = benchmark_grid(task, learner, resampling)
bmr = benchmark(design, callbacks = callback)

walk(bmr$score()$learner, function(learner) {
expect_equal(learner$state$test, 1)
})
expect_null(bmr$data_extra)
})

test_that("writing to data_extra works", {
Expand Down

0 comments on commit 50a26df

Please sign in to comment.