Repository navigation
Conversation
| expected <- .refit_cluster_draws( | ||
| model, | ||
| data, | ||
| group, | ||
| 20, | ||
| iterations, | ||
| 42, | ||
| sim = sim, | ||
| relabel = relabel | ||
| ) |
There was a problem hiding this comment.
[air] reported by reviewdog 🐶
| expected <- .refit_cluster_draws( | |
| model, | |
| data, | |
| group, | |
| 20, | |
| iterations, | |
| 42, | |
| sim = sim, | |
| relabel = relabel | |
| ) | |
| expected <- .refit_cluster_draws(model, data, group, iterations, 42, relabel = relabel) |
| verbose = FALSE | ||
| )) | ||
| } | ||
| expect_no_condition(model_parameters(m_single, standardize = "std.nox", verbose = FALSE)) |
There was a problem hiding this comment.
[air] reported by reviewdog 🐶
| expect_no_condition(model_parameters(m_single, standardize = "std.nox", verbose = FALSE)) | |
| expect_no_condition(model_parameters( | |
| m_single, | |
| standardize = "std.nox", | |
| verbose = FALSE | |
| )) |
| out <- model_parameters(m_single, standardize = "latent") | ||
| expect_true(.has_footer(out, " (type: std.lv).")) | ||
| expect_false(.has_footer(model_parameters(m_single))) | ||
| expect_false(.has_footer(model_parameters(m_single, standardize = TRUE, verbose = FALSE))) |
There was a problem hiding this comment.
[air] reported by reviewdog 🐶
| expect_false(.has_footer(model_parameters(m_single, standardize = TRUE, verbose = FALSE))) | |
| expect_false(.has_footer(model_parameters( | |
| m_single, | |
| standardize = TRUE, | |
| verbose = FALSE | |
| ))) |
| cells <- lapply(strsplit(rows, "|", fixed = TRUE), trimws) | ||
| header <- cells[[1]] | ||
| body <- cells[-1] | ||
| expect_identical(vapply(body, function(x) x[header == "p.1"], character(1)), c("a", "b", "c")) |
There was a problem hiding this comment.
[air] reported by reviewdog 🐶
| expect_identical(vapply(body, function(x) x[header == "p.1"], character(1)), c("a", "b", "c")) | |
| expect_identical( | |
| vapply(body, function(x) x[header == "p.1"], character(1)), | |
| c("a", "b", "c") | |
| ) |
| mp <- model_parameters(pw, p_adjust = method) | ||
| expect_equal(mp$p, stats::p.adjust(p_raw, methods[[method]]), tolerance = 1e-10) | ||
| } | ||
| expect_false(any(grepl("p-value adjustment method", capture.output(print(mp)), fixed = TRUE))) |
There was a problem hiding this comment.
[air] reported by reviewdog 🐶
| expect_false(any(grepl("p-value adjustment method", capture.output(print(mp)), fixed = TRUE))) | |
| expect_false(any(grepl( | |
| "p-value adjustment method", | |
| capture.output(print(mp)), | |
| fixed = TRUE | |
| ))) |
| out <- capture.output(print(mp)) | ||
| expect_true(any(startsWith(out, "Parameter"))) | ||
| expect_false(any(grepl("p-value adjustment method", out, fixed = TRUE))) | ||
| expect_false(any(grepl("p-value adjustment method", capture.output(print(mp)), fixed = TRUE))) |
There was a problem hiding this comment.
[air] reported by reviewdog 🐶
| expect_false(any(grepl("p-value adjustment method", capture.output(print(mp)), fixed = TRUE))) | |
| expect_false(any(grepl( | |
| "p-value adjustment method", | |
| capture.output(print(mp)), | |
| fixed = TRUE | |
| ))) |
| out <- capture.output(print(mp)) | ||
| expect_true(any(startsWith(out, "contrast"))) | ||
| expect_false(any(grepl("p-value adjustment method", out, fixed = TRUE))) | ||
| expect_false(any(grepl("p-value adjustment method", capture.output(print(mp)), fixed = TRUE))) |
There was a problem hiding this comment.
[air] reported by reviewdog 🐶
| expect_false(any(grepl("p-value adjustment method", capture.output(print(mp)), fixed = TRUE))) | |
| expect_false(any(grepl( | |
| "p-value adjustment method", | |
| capture.output(print(mp)), | |
| fixed = TRUE | |
| ))) |
There was a problem hiding this comment.
[air] reported by reviewdog 🐶
parameters/tests/testthat/helper-cluster_bootstrap.R
Lines 6 to 13 in 19e9306
There was a problem hiding this comment.
[air] reported by reviewdog 🐶
parameters/tests/testthat/test-format_parameters.R
Lines 397 to 415 in 19e9306
Several of my recent PRs added more tests than the changes needed: checking for rare edge cases, the same check repeated across model classes or inputs, extra model fits, and long comments. Sorry for the extra review load and CI time this caused.
This PR removes the redundant tests. Each fixed behavior keeps one regression test, and no R code changes.