Skip to content

Commit

Permalink
more fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mb706 committed Apr 22, 2024
1 parent 60f1b21 commit 9a899a3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions inst/testthat/helper_functions.R
Original file line number Diff line number Diff line change
Expand Up @@ -233,10 +233,10 @@ expect_datapreproc_pipeop_class = function(poclass, constargs = list(), task,
expect_equal(po$innum, 1)
expect_equal(po$outnum, 1)

expect_true(are_types_compatible(po$input$train, "Task"))
expect_true(are_types_compatible(po$input$predict, "Task"))
expect_true(are_types_compatible(po$output$train, "Task"))
expect_true(are_types_compatible(po$output$predict, "Task"))
expect_true(mlr3pipelines:::are_types_compatible(po$input$train, "Task"))
expect_true(mlr3pipelines:::are_types_compatible(po$input$predict, "Task"))
expect_true(mlr3pipelines:::are_types_compatible(po$output$train, "Task"))
expect_true(mlr3pipelines:::are_types_compatible(po$output$predict, "Task"))

expect_error(po$train(list(NULL)), "class.*Task.*but has class")

Expand Down

0 comments on commit 9a899a3

Please sign in to comment.