From 0517ca6179d3c4bc35cc7edcfd5de3d98aa4fd64 Mon Sep 17 00:00:00 2001 From: Johannes Ranke Date: Wed, 9 Dec 2020 08:40:49 +0100 Subject: Some more tests --- tests/testthat/test_f_time_norm.R | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 tests/testthat/test_f_time_norm.R (limited to 'tests/testthat/test_f_time_norm.R') diff --git a/tests/testthat/test_f_time_norm.R b/tests/testthat/test_f_time_norm.R new file mode 100644 index 00000000..790cce8b --- /dev/null +++ b/tests/testthat/test_f_time_norm.R @@ -0,0 +1,6 @@ +context("Time step normalisation") + +test_that("Simple temperature and moisture normalisation works", { + expect_equal(round(f_time_norm_focus(25, 20, 25), 2), 1.37) +}) + -- cgit v1.2.3