Skip to content

Commit 230d0a4

Browse files
committed
use dplyr::as_tibble() in arrow tests
1 parent f4d2d16 commit 230d0a4

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

tests/testthat/test-adjust_numeric_range.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ test_that("arrow - adjust_predictions_custom works", {
190190
mtcars_tbl <- arrow::as_arrow_table(mtcars)
191191

192192
expect_identical(
193-
dplyr::collect(predict(res, mtcars_tbl)),
194-
predict(tlr_fit, mtcars)
193+
dplyr::as_tibble(dplyr::collect(predict(res, mtcars_tbl))),
194+
dplyr::as_tibble(predict(tlr_fit, mtcars))
195195
)
196196
})

tests/testthat/test-adjust_predictions_custom.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ test_that("arrow - adjust_predictions_custom works", {
174174
mtcars_tbl <- arrow::as_arrow_table(mtcars)
175175

176176
expect_identical(
177-
dplyr::collect(predict(res, mtcars_tbl)),
178-
predict(tlr_fit, mtcars)
177+
dplyr::as_tibble(dplyr::collect(predict(res, mtcars_tbl))),
178+
dplyr::as_tibble(predict(tlr_fit, mtcars))
179179
)
180180
})

0 commit comments

Comments
 (0)