From d0a358a8f4fd03c95536409523e492eb15726f44 Mon Sep 17 00:00:00 2001 From: Johannes Ranke Date: Mon, 4 Mar 2019 10:12:43 +0100 Subject: Review tests and examples based on winbuilder results Static documentation rebuilt by pkgdown --- tests/testthat/test_nafta.R | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'tests/testthat/test_nafta.R') 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) -- cgit v1.2.1