Skip to content

Commit d61804f

Browse files
Apply suggestions from code review
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 2c6187e commit d61804f

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

tests/testthat/test-get_map_estimates.R

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -593,7 +593,10 @@ test_that("FOCE vcov is positive definite even when numDeriv Hessian would fail"
593593
error = list(prop = 0.1, add = 0.1),
594594
fixed = "TDM_INIT"
595595
)
596+
expect_false(is.null(fit$foce_vcov))
597+
expect_true(PKPDsim::is_positive_definite(fit$foce_vcov))
596598
expect_true(PKPDsim::is_positive_definite(fit$vcov_full))
599+
expect_equal(fit$vcov_full, fit$foce_vcov)
597600
})
598601

599602
test_that("When vcov from numDeriv is not positive definite, fallback to omega (residuals=FALSE)", {

0 commit comments

Comments
 (0)