Skip to content

Commit 10a2919

Browse files
committed
fix stale NA warning regex in prepare_mcmc_array test
1 parent 5ee52a1 commit 10a2919

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/testthat/test-helpers-mcmc.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -254,8 +254,8 @@ test_that("transformations recycled properly if not a named list", {
254254
# prepare_mcmc_array ------------------------------------------------------
255255
test_that("prepare_mcmc_array warns but does not error if NAs", {
256256
arr_na <- arr
257-
arr_na[1,1,1] <- NA
258-
expect_warning(out <- prepare_mcmc_array(arr_na), "NAs were found")
257+
arr_na[1, 1, 1] <- NA
258+
expect_warning(out <- prepare_mcmc_array(arr_na), "NAs found in 'x'")
259259
expect_s3_class(out, "mcmc_array")
260260
expect_true(anyNA(out))
261261
})

0 commit comments

Comments
 (0)