From 0b9d7953583262bb4e61ce89b17d1a525df24a4c Mon Sep 17 00:00:00 2001 From: Andrew Johnson Date: Wed, 24 Jan 2024 09:59:48 +0200 Subject: [PATCH] Re-enable laplace tests --- tests/testthat/test-model-laplace.R | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/testthat/test-model-laplace.R b/tests/testthat/test-model-laplace.R index 7e814bcc..c021c0fa 100644 --- a/tests/testthat/test-model-laplace.R +++ b/tests/testthat/test-model-laplace.R @@ -55,8 +55,7 @@ test_that("laplace() runs when all arguments specified validly", { expect_equal(fit1$mode()$metadata()$jacobian, as.integer(ok_arg_values$jacobian)) expect_equal(fit1$mode()$metadata()$init_alpha, ok_arg_values$opt_args$init_alpha) - # https://github.com/stan-dev/cmdstan/issues/1242 - #expect_equal(fit1$mode()$metadata()$tol_obj, ok_arg_values$opt_args$tol_obj, tolerance = 0) + expect_equal(fit1$mode()$metadata()$tol_obj, ok_arg_values$opt_args$tol_obj, tolerance = 0) # leaving all at default (except 'data') expect_laplace_output(fit2 <- mod$laplace(data = data_list, seed = 123))