Skip to content

Commit

Permalink
make test reliable
Browse files Browse the repository at this point in the history
  • Loading branch information
mjskay committed Jan 6, 2024
1 parent 6ae97f8 commit ecfbb84
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/testthat/test-rstar.R
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ test_that("rstar accepts different hyperparameters", {
test_that("rstar accepts different training proportion", {
skip_if_not_installed("caret")
x <- example_draws()
set.seed(12345)
val1 <- rstar(x, method = "knn")
val2 <- rstar(x, method = "knn", training_proportion = 0.1)
expect_true(val1 > val2)
Expand Down

0 comments on commit ecfbb84

Please sign in to comment.