Skip to content

Commit c31aa32

Browse files
committed
Add snapshot unit tests
1 parent cc5b40e commit c31aa32

File tree

7 files changed

+319
-1
lines changed

7 files changed

+319
-1
lines changed

DESCRIPTION

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@ Imports:
2828
lifecycle,
2929
rlang,
3030
scales,
31-
vctrs
31+
vctrs,
32+
vdiffr
3233
URL: https://github.com/hrryt/gglinedensity, https://hrryt.github.io/gglinedensity/
3334
BugReports: https://github.com/hrryt/gglinedensity/issues
35+
Suggests:
36+
testthat (>= 3.0.0)
37+
Config/testthat/edition: 3

tests/testthat.R

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# This file is part of the standard setup for testthat.
2+
# It is recommended that you do not modify it.
3+
#
4+
# Where should you do additional test configuration?
5+
# Learn more about the roles of various files in:
6+
# * https://r-pkgs.org/testing-design.html#sec-tests-files-overview
7+
# * https://testthat.r-lib.org/articles/special-files.html
8+
9+
library(testthat)
10+
library(gglinedensity)
11+
12+
test_check("gglinedensity")
Lines changed: 67 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)