Skip to content

Commit

Permalink
tests: use expect_match()
Browse files Browse the repository at this point in the history
  • Loading branch information
m-muecke committed Dec 14, 2024
1 parent ae3dcb6 commit f2d07f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/testthat/test_LearnerClust.R
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ test_that("empty predict set (#421)", {
hout = resampling$instantiate(task)
model = learner$train(task, hout$train_set(1))
pred = learner$predict(task, hout$test_set(1))
expect_true(any(grepl("No data to predict on", learner$log$msg, fixed = TRUE)))
expect_match(learner$log$msg, "No data to predict on", fixed = TRUE, all = FALSE)
})

test_that("assignment saving works", {
Expand Down

0 comments on commit f2d07f6

Please sign in to comment.