Skip to content

Commit

Permalink
add snapshot
Browse files Browse the repository at this point in the history
  • Loading branch information
strengejacke committed Oct 4, 2023
1 parent 8467a76 commit 2c3c00a
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
21 changes: 21 additions & 0 deletions tests/testthat/_snaps/check_distribution.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# check_distribution

Code
print(out)
Output
# Distribution of Model Family
Predicted Distribution of Residuals
Distribution Probability
cauchy 94%
lognormal 3%
weibull 3%
Predicted Distribution of Response
Distribution Probability
lognormal 47%
gamma 44%
beta-binomial 3%

2 changes: 2 additions & 0 deletions tests/testthat/test-check_distribution.R
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,6 @@ test_that("check_distribution", {
),
tolerance = 1e-4
)

expect_snapshot(print(out))
})

0 comments on commit 2c3c00a

Please sign in to comment.