Skip to content

Commit

Permalink
Fixed linear regression model testing.
Browse files Browse the repository at this point in the history
  • Loading branch information
Tess-LaCoil committed Apr 3, 2024
1 parent cc8b9e3 commit d72e601
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -55,3 +55,6 @@ inst/doc
# Pre-compiled stan files
*.o
*.so

# Bugged directory from snapshot package
tests/testthat/_snaps
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,6 @@ test_that("Execution and output: Linear", {
seed = 1)
)

# Extract samples
lm_samples <- rstan::extract(lm_test, permuted = FALSE, inc_warmup = FALSE) |>
as.data.frame() |>
head(n=100)

expect_equal(lm_samples, lm_baseline_output, tolerance = 1e-5)
expect_visible(lm_test)
expect_s4_class(lm_test, "stanfit")
})

0 comments on commit d72e601

Please sign in to comment.