Skip to content

Commit

Permalink
Avoid issue stan-dev#330 in the unit tests (necessary now that stan-d…
Browse files Browse the repository at this point in the history
…ev#329 has been fixed).
  • Loading branch information
fweber144 committed Jul 7, 2022
1 parent 22baeb7 commit 0391d50
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/testthat/setup.R
Original file line number Diff line number Diff line change
Expand Up @@ -1134,6 +1134,10 @@ cre_args_smmry_vsel <- function(args_obj) {
nterms_tst <- nterms_max_smmry["default_nterms_max_smmry"]
}
}
if (fam_crr == "binom") {
# Due to issue #330:
stats_crr$stats <- setdiff(stats_crr$stats, "auc")
}
lapply(nterms_tst, function(nterms_crr) {
return(c(
nlist(tstsetup_vsel), only_nonargs(args_obj[[tstsetup_vsel]]),
Expand Down
4 changes: 4 additions & 0 deletions tests/testthat/test_methods_vsel.R
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,10 @@ test_that("`stat` works", {
"binom" = "binom_stats",
"common_stats")
stat_vec <- stats_tst[[stat_crr_nm]]$stats
if (fam_crr == "binom") {
# Due to issue #330:
stat_vec <- setdiff(stat_vec, "auc")
}
for (stat_crr in stat_vec) {
if (stat_crr %in% c("rmse", "auc")) {
suggsize_seed <- seed3_tst
Expand Down

0 comments on commit 0391d50

Please sign in to comment.