Skip to content

Commit 5579684

Browse files
committed
Add trivial testthat test
1 parent 01f1aac commit 5579684

File tree

3 files changed

+18
-1
lines changed

3 files changed

+18
-1
lines changed

DESCRIPTION

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,7 @@ LazyData: true
3030
RoxygenNote: 7.2.1
3131
Suggests:
3232
rmarkdown,
33-
knitr
33+
knitr,
34+
testthat (>= 3.0.0)
3435
VignetteBuilder: knitr
36+
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/tests.html
7+
# * https://testthat.r-lib.org/reference/test_package.html#special-files
8+
9+
library(testthat)
10+
library(ETLSyntheaBuilder)
11+
12+
test_check("ETLSyntheaBuilder")

tests/testthat/test-simple_test.R

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
test_that("multiplication works", {
2+
expect_equal(2 * 2, 4)
3+
})

0 commit comments

Comments
 (0)