diff options
Diffstat (limited to 'tests/testthat/test_nafta.R')
-rw-r--r-- | tests/testthat/test_nafta.R | 7 |
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) |