Skip to content

Commit

Permalink
fix: expect numeric
Browse files Browse the repository at this point in the history
  • Loading branch information
be-marc committed Dec 15, 2023
1 parent 52a63c2 commit 4507438
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/testthat/test_FSelectorRFE.R
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ test_that("importance is stored in the archive", {
z = test_fselector("rfe", store_models = TRUE)
a = z$inst$archive$data
expect_names(names(z$inst$result), must.include = "importance")
expect_character(z$inst$result$importance[[1]])
expect_numeric(z$inst$result$importance[[1]])
expect_names(names(z$inst$archive$data), must.include = "importance")
pwalk(a, function(x1, x2, x3, x4, importance, ...) expect_equal(x1 + x2 + x3 + x4, length(importance)))
})
Expand Down

0 comments on commit 4507438

Please sign in to comment.