Skip to content

Commit 8855842

Browse files
committed
procrastinate on parsnip overhead checks until new version
1 parent 3b2572c commit 8855842

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/testthat/test-fit_interfaces.R

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,7 @@ test_that("overhead of parsnip interface is minimal (#1071)", {
156156
skip_on_cran()
157157
skip_on_covr()
158158
skip_if_not_installed("bench")
159+
skip_if_not_installed("parsnip", minimum_version = "1.3.0")
159160

160161
bm <- bench::mark(
161162
time_engine = lm(mpg ~ ., mtcars),
@@ -167,10 +168,10 @@ test_that("overhead of parsnip interface is minimal (#1071)", {
167168

168169
expect_true(
169170
bm$median[2] < 3.5,
170-
label = paste0("parsnip overhead factor (formula interface): ", bm$median[2])
171+
label = paste0("parsnip overhead factor (formula interface): ", round(bm$median[2], 4))
171172
)
172173
expect_true(
173174
bm$median[3] < 3.75,
174-
label = paste0("parsnip overhead factor (xy interface): ", bm$median[3])
175+
label = paste0("parsnip overhead factor (xy interface): ", round(bm$median[3], 4))
175176
)
176177
})

0 commit comments

Comments
 (0)