Skip to content

Commit

Permalink
Add test to ensure depot is present
Browse files Browse the repository at this point in the history
  • Loading branch information
mattfidler committed Aug 21, 2024
1 parent 0d91222 commit 0a2f48a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/testthat/test-transPk.R
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ test_that("transPk -- k", {
pkTrans("k")
expect_true(all(c("lkel", "lk12", "lk21", "lk13", "lk31") %in% names(p3k$theta)))

# Issue #87 -- Make sure depot is not dropped
expect_equal(rxode2::modelExtract(pk3, "d/dt(depot)"),
"d/dt(depot) <- -ka * depot")

p2k <- readModelDb("PK_2cmt_des") |>
pkTrans("k")
expect_true(all(c("lkel", "lk12", "lk21") %in% names(p2k$theta)))
Expand Down

0 comments on commit 0a2f48a

Please sign in to comment.