Skip to content

Commit cbc442f

Browse files
committed
Update expected results for the "cmdstanr methods work" test.
1 parent b1bd4f4 commit cbc442f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/testthat/test-extractors.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,8 +121,8 @@ test_that("cmdstanr methods work", {
121121

122122
fit <- cmdstanr::cmdstanr_example("logistic", iter_sampling = 500, chains = 2)
123123
np <- nuts_params(fit)
124-
np_names <- c("treedepth__", "divergent__", "accept_stat__", "stepsize__",
125-
"n_leapfrog__", "energy__")
124+
np_names <- paste0(c("accept_stat", "stepsize", "treedepth", "n_leapfrog",
125+
"divergent", "energy"), "__")
126126
expect_identical(levels(np$Parameter), np_names)
127127
expect_equal(range(np$Iteration), c(1, 500))
128128
expect_equal(range(np$Chain), c(1, 2))

0 commit comments

Comments
 (0)