From 767d9f64984ba3aadcda0b830ba9e35479d2e9f7 Mon Sep 17 00:00:00 2001 From: Matthew Fidler Date: Wed, 18 Sep 2024 11:26:49 -0500 Subject: [PATCH] Add one more test for monolix2rx for when the modeling file isn't present --- tests/testthat/test-mlxtran.R | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/testthat/test-mlxtran.R b/tests/testthat/test-mlxtran.R index ede4deb..5335287 100644 --- a/tests/testthat/test-mlxtran.R +++ b/tests/testthat/test-mlxtran.R @@ -33,7 +33,7 @@ test_that("mlxtran initial list", { "", "OUTPUT:", "output={rx_pred_cp, rx_pred_effect}", - "") + "") writeLines(modelLines, "pk.turnover.emax3-monolix.txt") @@ -351,8 +351,12 @@ test_that("mlxtran initial list", { expect_equal(rx$dfObs, 176) expect_equal(rx$description, "model translated from `babelmixr2` and `nlmixr2` function pk.turnover.emax3 to pk.turnover.emax3-monolix.txt") + + v <- .mlxtran(lines) + expect_error(monolix2rx(v, update=FALSE)) # no file to read } + }) })