Skip to content

Commit

Permalink
test coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
strengejacke committed Dec 18, 2023
1 parent 509d46a commit 815c582
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/testthat/_snaps/describe_distribution.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,12 @@
--------------------------------------------------------------------------------------
3.06 | 0.44 | 0.52 | [2.00, 4.40] | 2.80, 3.30 | 0.32 | 0.23 | 150 | 0

---

Code
format(x)
Output
Mean | SD | IQR | 95% CI | Range | Quartiles | Skewness | Kurtosis | n | n_Missing
-----------------------------------------------------------------------------------------------------
3.06 | 0.44 | 0.52 | [2.99, 3.12] | [2.00, 4.40] | 2.80, 3.30 | 0.32 | 0.23 | 150 | 0

2 changes: 2 additions & 0 deletions tests/testthat/test-describe_distribution.R
Original file line number Diff line number Diff line change
Expand Up @@ -284,4 +284,6 @@ test_that("describe_distribution formatting", {
data(iris)
x <- describe_distribution(iris$Sepal.Width, quartiles = TRUE)
expect_snapshot(format(x))
x <- describe_distribution(iris$Sepal.Width, ci = 0.95, quartiles = TRUE)
expect_snapshot(format(x))
})

0 comments on commit 815c582

Please sign in to comment.