Skip to content

Commit

Permalink
tests: use expect_match() more
Browse files Browse the repository at this point in the history
  • Loading branch information
m-muecke committed Dec 14, 2024
1 parent 6da1a2b commit 156487d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/testthat/test_PipeOpFDAFlatten.R
Original file line number Diff line number Diff line change
Expand Up @@ -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", {
Expand Down

0 comments on commit 156487d

Please sign in to comment.