Skip to content

Commit

Permalink
tests: test that anticipates changes in tf
Browse files Browse the repository at this point in the history
  • Loading branch information
sebffischer committed Dec 8, 2023
1 parent 17fc24a commit 64eb139
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions tests/testthat.R
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@ if (requireNamespace("testthat", quietly = TRUE)) {
library("checkmate")
library("testthat")
library("mlr3fda")
library("tf")
test_check("mlr3fda")
}
8 changes: 8 additions & 0 deletions tests/testthat/test_tf.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
test_that("tf does not support NAs", {
# Various PipeOps assume that there are no functional NAs
# This test will inform us whether this feature is implemented,
# in which case we then have to adress this case in the PipeOps
# https://github.com/tidyfun/tf/issues/33
d = data.frame(time = 1, value = NA_real_, id = "1")
expect_error(tfd(d, arg = "time", value = "value", id = "id"))
})

0 comments on commit 64eb139

Please sign in to comment.