aboutsummaryrefslogtreecommitdiff
path: root/tests/testthat/test_mkinds.R
diff options
context:
space:
mode:
authorJohannes Ranke <jranke@uni-bremen.de>2019-02-27 12:04:52 +0100
committerJohannes Ranke <jranke@uni-bremen.de>2019-02-27 12:04:52 +0100
commit6b4ab746e5474dfeda9237f01bc2dd01f1bb62ee (patch)
tree7299e1fa4fa9bd0090a5878df985312f528615f4 /tests/testthat/test_mkinds.R
parentc446b59e675aeff08ff7205b05f06cd81bf6dc68 (diff)
Increase test coverage
Diffstat (limited to 'tests/testthat/test_mkinds.R')
-rw-r--r--tests/testthat/test_mkinds.R6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/testthat/test_mkinds.R b/tests/testthat/test_mkinds.R
new file mode 100644
index 00000000..e017301c
--- /dev/null
+++ b/tests/testthat/test_mkinds.R
@@ -0,0 +1,6 @@
+context("Test dataset class mkinds used in gmkin")
+
+test_that("An mkinds object can be created and printed", {
+ testdata <- mkinds$new("FOCUS C", data = FOCUS_2006_C, time_unit = "days", unit = "%AR")
+ expect_known_output(testdata, "FOCUS_2006_C_mkinds.txt")
+})

Contact - Imprint