tests/testthat/test_pipeop_targettrafo.R

context("PipeOpTargetTrafo")

test_that("PipeOpTargetTrafo - basic properties", {
  expect_pipeop_class(PipeOpTargetTrafo, list(id = "po"))

  po = PipeOpTargetTrafo$new("po")

  expect_pipeop(po)
  expect_data_table(po$input, nrows = 1L)
  expect_data_table(po$output, nrows = 2L)
})

Try the mlr3pipelines package in your browser

Any scripts or data that you put into this service are public.

mlr3pipelines documentation built on Sept. 21, 2022, 9:09 a.m.