From 06e41efdd09864ace189bedbc1ae94d0d4f947a9 Mon Sep 17 00:00:00 2001 From: schalkdaniel Date: Sat, 20 Jan 2018 15:38:12 +0100 Subject: [PATCH] update test, to small indizes produce < 3 parameter > 0 which crash the test --- tests/testthat/test_compboost.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/testthat/test_compboost.R b/tests/testthat/test_compboost.R index 3320793a..b29895f0 100644 --- a/tests/testthat/test_compboost.R +++ b/tests/testthat/test_compboost.R @@ -154,7 +154,7 @@ test_that("compboost does the same as mboost", { unname(unlist(cboost$getEstimatedParameterOfIteration(200))) ) - idx = sample(1:500, 3) + idx = 2:4 * 120 matrix.compare = matrix(NA_real_, nrow = 3, ncol = 3) for (i in seq_along(idx)) {