Skip to content

Commit

Permalink
fix: wrong object class
Browse files Browse the repository at this point in the history
  • Loading branch information
mcanouil committed Nov 6, 2024
1 parent 0327ca5 commit 14b156b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/testthat/test-time_model.R
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,9 @@ test_that("time_model", {

for (i in names(res)) {
expect_snapshot(
compute_correlations(fit = res[[i]], method = i)[, lapply(.SD, round, digits = 2L), .SDcols = is.numeric]
as.data.table(
compute_correlations(fit = res[[i]], method = i)
)[, lapply(.SD, round, digits = 2L), .SDcols = is.numeric]
)
expect_snapshot({
out <- compute_aucs(fit = res[[i]], method = i)
Expand Down

0 comments on commit 14b156b

Please sign in to comment.