From 2c3c00ab141427dbd04377bceb9352da1c57661e Mon Sep 17 00:00:00 2001 From: Daniel Date: Wed, 4 Oct 2023 12:39:11 +0200 Subject: [PATCH] add snapshot --- tests/testthat/_snaps/check_distribution.md | 21 +++++++++++++++++++++ tests/testthat/test-check_distribution.R | 2 ++ 2 files changed, 23 insertions(+) create mode 100644 tests/testthat/_snaps/check_distribution.md diff --git a/tests/testthat/_snaps/check_distribution.md b/tests/testthat/_snaps/check_distribution.md new file mode 100644 index 000000000..11187a23b --- /dev/null +++ b/tests/testthat/_snaps/check_distribution.md @@ -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% + diff --git a/tests/testthat/test-check_distribution.R b/tests/testthat/test-check_distribution.R index 9226e6102..e8ab2835f 100644 --- a/tests/testthat/test-check_distribution.R +++ b/tests/testthat/test-check_distribution.R @@ -31,4 +31,6 @@ test_that("check_distribution", { ), tolerance = 1e-4 ) + + expect_snapshot(print(out)) })