From b24f0e8968499af833fff14834f3ed395e5e9f9b Mon Sep 17 00:00:00 2001 From: Johannes Ranke Date: Thu, 13 Feb 2025 13:46:24 +0100 Subject: Tests for 29 February in UK drainage, docs --- tests/testthat/test_UK_drainage.R | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'tests/testthat/test_UK_drainage.R') diff --git a/tests/testthat/test_UK_drainage.R b/tests/testthat/test_UK_drainage.R index 05c59b2..defecbb 100644 --- a/tests/testthat/test_UK_drainage.R +++ b/tests/testthat/test_UK_drainage.R @@ -34,6 +34,14 @@ test_that("UK drainflow PECs are correct", { latest_application = "01 July", soil_DT50 = 200), 2), 0.84) + expect_error(round(PEC_sw_drainage_UK(60, interception = 0.5, Koc = 550, + latest_application = "100 July", + soil_DT50 = 200), 2), "Please specify") + + expect_silent(round(PEC_sw_drainage_UK(60, interception = 0.5, Koc = 550, + latest_application = "29 February", + soil_DT50 = 200), 2)) + # Test that PECsw do not increase if the application is after the beginning # of the drainflow period expect_equal( -- cgit v1.2.1