From 8d8927d05578aa8447648899534b8e3ae51657f0 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Florian=20G=C3=A4rber?= <florian.gaerber@uni-hamburg.de>
Date: Thu, 20 Jul 2023 11:59:14 +0200
Subject: [PATCH] Add testthat

---
 DESCRIPTION      |  3 +++
 tests/testthat.R | 12 ++++++++++++
 2 files changed, 15 insertions(+)
 create mode 100644 tests/testthat.R

diff --git a/DESCRIPTION b/DESCRIPTION
index 3513e12..a75d701 100644
--- a/DESCRIPTION
+++ b/DESCRIPTION
@@ -25,8 +25,11 @@ Imports:
     ranger (>= 0.12.1),
     Rcpp,
     rlist
+Suggests: 
+    testthat (>= 3.0.0)
 LinkingTo: 
     Rcpp
+Config/testthat/edition: 3
 Encoding: UTF-8
 LazyData: true
 RoxygenNote: 7.2.3
diff --git a/tests/testthat.R b/tests/testthat.R
new file mode 100644
index 0000000..9aeffeb
--- /dev/null
+++ b/tests/testthat.R
@@ -0,0 +1,12 @@
+# This file is part of the standard setup for testthat.
+# It is recommended that you do not modify it.
+#
+# Where should you do additional test configuration?
+# Learn more about the roles of various files in:
+# * https://r-pkgs.org/tests.html
+# * https://testthat.r-lib.org/reference/test_package.html#special-files
+
+library(testthat)
+library(RFSurrogates)
+
+test_check("RFSurrogates")
-- 
GitLab