From a071d46f698397a6c8247e19eceb0fcd5f139056 Mon Sep 17 00:00:00 2001 From: Johannes Ranke Date: Thu, 10 Oct 2019 12:25:42 +0200 Subject: Fix set_nd for metabolites, handle zero at time zero --- tests/testthat/test_set_nd.R | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tests/testthat') diff --git a/tests/testthat/test_set_nd.R b/tests/testthat/test_set_nd.R index 29087a8..6b73e2d 100644 --- a/tests/testthat/test_set_nd.R +++ b/tests/testthat/test_set_nd.R @@ -17,6 +17,8 @@ test_that("Simple residue series processed as intended", { expect_equal(set_nd(metabolite, 0.02, loq = 0.05), c(NA, NA, .01, .03, .06, .1, .11, .1, .09, .05, .03, .01, NA)) + expect_equal(set_nd(c("nd", 1, 0.2, "nd"), 0.1), c(NA, 1, 0.2, 0.05)) + }) test_that("Simple residue series are processed as in the FOCUS guidance", { -- cgit v1.2.1