From 396ba6c42252426a132be56b9f417786a1f276e3 Mon Sep 17 00:00:00 2001 From: Ranke Johannes Date: Tue, 13 Aug 2024 10:58:16 +0200 Subject: Support units in drift, runoff und sediment PECs --- tests/testthat/test_PEC_sed.R | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'tests/testthat/test_PEC_sed.R') diff --git a/tests/testthat/test_PEC_sed.R b/tests/testthat/test_PEC_sed.R index 443f789..0681adc 100644 --- a/tests/testthat/test_PEC_sed.R +++ b/tests/testthat/test_PEC_sed.R @@ -5,5 +5,7 @@ test_that("PEC_sw_sed calculates correctly using the percentage method", { # default assumptions of CRD spreadsheet (5 cm sediment depth, 1.3 kg/L sediment density) # Reference value calculated with CRD spreadsheet PEC_sw_100_1_m <- PEC_sw_drift(100, distances = 1) - expect_equivalent(round(PEC_sw_sed(PEC_sw_100_1_m, percentage = 50), 3), 2.131) + expect_equivalent( + round(PEC_sw_sed(PEC_sw_100_1_m, percentage = 50), 3), + set_units(2.131, "µg/kg")) }) -- cgit v1.2.1