Skip to content

Commit

Permalink
Merge pull request #1064 from stan-dev/fix-test-errors
Browse files Browse the repository at this point in the history
Remove extra parameter breaking tests
  • Loading branch information
jgabry authored Mar 4, 2025
2 parents 27305fa + b1c78b4 commit 2fee6ca
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/testthat/test-fit-gq.R
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ test_that("print() method works after gq", {
# make sure the row order is correct
out <- capture.output(fit_gq$print(c("y_rep[1]", "sum_y", "y_rep[3]")))
expect_length(out, 4)
expect_match(out[1], " variable", out[1])
expect_match(out[1], " variable")
expect_match(out[2], " y_rep[1]", fixed = TRUE)
expect_match(out[3], " sum_y")
expect_match(out[4], " y_rep[3]", fixed = TRUE)
Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/test-fit-mcmc.R
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ test_that("print() method works after mcmc", {
# make sure the row order is correct
out <- capture.output(fit$print(c("theta[1]", "tau", "mu", "theta_raw[3]")))
expect_length(out, 5)
expect_match(out[1], " variable", out[1])
expect_match(out[1], " variable")
expect_match(out[2], " theta[1]", fixed = TRUE)
expect_match(out[3], " tau")
expect_match(out[4], " mu")
Expand Down

0 comments on commit 2fee6ca

Please sign in to comment.