aboutsummaryrefslogtreecommitdiff
path: root/tests/testthat/test_nafta.R
diff options
context:
space:
mode:
authorJohannes Ranke <jranke@uni-bremen.de>2019-03-04 10:12:43 +0100
committerJohannes Ranke <jranke@uni-bremen.de>2019-03-04 10:12:43 +0100
commitd0a358a8f4fd03c95536409523e492eb15726f44 (patch)
treefefa34562fb4557921d88f64c6827401a9c1ed99 /tests/testthat/test_nafta.R
parent4e85356bbe535aaf5bc7dc25238ed6a8d1f9913c (diff)
Review tests and examples based on winbuilder results
Static documentation rebuilt by pkgdown
Diffstat (limited to 'tests/testthat/test_nafta.R')
-rw-r--r--tests/testthat/test_nafta.R7
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/testthat/test_nafta.R b/tests/testthat/test_nafta.R
index ad0f1d63..9528200d 100644
--- a/tests/testthat/test_nafta.R
+++ b/tests/testthat/test_nafta.R
@@ -19,10 +19,10 @@
context("Evaluations according to 2015 NAFTA guidance")
test_that("Data for more than one compound are rejected",
- expect_error(nafta(FOCUS_2006_D)))
+ expect_error(nafta(FOCUS_2006_D, cores = 1)))
test_that("Test data from Appendix B are correctly evaluated", {
- expect_message(res <- nafta(NAFTA_SOP_Appendix_B, "aerobic aquatic"))
+ expect_message(res <- nafta(NAFTA_SOP_Appendix_B, "aerobic aquatic", cores = 1))
# From Figure D.1
dtx_sop <- matrix(c(2.74, 1.37, 2.17, 9.1, 28.5, 39.9), nrow = 3, ncol = 2)
@@ -43,7 +43,8 @@ test_that("Test data from Appendix B are correctly evaluated", {
})
test_that("Test data from Appendix D are correctly evaluated", {
- expect_message(res <- nafta(NAFTA_SOP_Appendix_D, "MRID 555555"))
+ expect_warning(res <- nafta(NAFTA_SOP_Appendix_D, "MRID 555555",
+ cores = 1, quiet = TRUE))
# From Figure D.1
dtx_sop <- matrix(c(407, 541, 429, 1352, 5192066, 2383), nrow = 3, ncol = 2)

Contact - Imprint