From 156487dc085247d3ca297a25cfb11e08b70d360f Mon Sep 17 00:00:00 2001
From: Maximilian Muecke <muecke.maximilian@gmail.com>
Date: Sat, 14 Dec 2024 14:38:04 +0100
Subject: [PATCH] tests: use `expect_match()` more

---
 tests/testthat/test_PipeOpFDAFlatten.R | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/testthat/test_PipeOpFDAFlatten.R b/tests/testthat/test_PipeOpFDAFlatten.R
index 8c5140c..d8d92f3 100644
--- a/tests/testthat/test_PipeOpFDAFlatten.R
+++ b/tests/testthat/test_PipeOpFDAFlatten.R
@@ -38,7 +38,7 @@ test_that("PipeOpFDAFlatten works with name clashes", {
   task = as_task_regr(dt, target = "heatan")
   pop = po("fda.flatten")
   taskout = train_pipeop(pop, train_pipeop(pop, list(task)))[[1L]]
-  expect_true("NIR_1_1" %in% taskout$feature_names)
+  expect_match(taskout$feature_names, "NIR_1_1", fixed = TRUE, all = FALSE)
 })
 
 test_that("PipeOpFDAFlatten works with tfr and tfi", {