Skip to content

Commit

Permalink
init tests
Browse files Browse the repository at this point in the history
  • Loading branch information
advieser committed Dec 20, 2024
1 parent ae345e5 commit 8a5e162
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions tests/testthat/test_pipeop_encodepl.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
context("PipeOpEncodePL")

test_that("PipeOpEncodePL - basic properties", {
task = mlr_tasks$get("mtcars")
expect_datapreproc_pipeop_class(PipeOpEncodePL, constargs = list(task_type = "TaskRegr"), task = task)

task = mlr_tasks$get("iris")
expect_datapreproc_pipeop_class(PipeOpEncodePL, task = task)
expect_datapreproc_pipeop_class(PipeOpEncodePL, constargs = list(task_type = "TaskClassif"), task = task)
})

# Tests:
# - different methods
# - with params (not all for regtree, hopefully)
# - test on tasks with simple data that behaviour is as expected (compare dts)
# - TODO: decide how to handle NAs in feature columns and test that

0 comments on commit 8a5e162

Please sign in to comment.