Skip to content

Commit

Permalink
fixing sfMsDS test
Browse files Browse the repository at this point in the history
  • Loading branch information
doserjef committed Mar 22, 2024
1 parent 8efeee8 commit e97af92
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tests/testthat/test-sfMsDS.R
Original file line number Diff line number Diff line change
Expand Up @@ -2417,7 +2417,7 @@ test_that("fitted works for g", {
test_that("predict works for g", {
X.0 <- cbind(dat$X, dat$X.re)
colnames(X.0) <- c('(Intercept)', 'abund.cov.1', 'abund.factor.1', 'abund.factor.2')
pred.out <- predict(out, X.0, coords.0, verbose = FALSE)
pred.out <- predict(out, X.0, dat$coords, verbose = FALSE)
expect_type(pred.out, "list")
expect_equal(dim(pred.out$mu.0.samples), c(out$n.post * out$n.chains, n.sp, J))
expect_equal(dim(pred.out$N.0.samples), c(out$n.post * out$n.chains, n.sp, J))
Expand All @@ -2429,4 +2429,3 @@ test_that("detection prediction works", {
expect_type(pred.out, 'list')
expect_equal(dim(pred.out$sigma.0.samples), c(out$n.post * out$n.chains, n.sp, J))
})

0 comments on commit e97af92

Please sign in to comment.