Skip to content

Commit

Permalink
fix for MacOS
Browse files Browse the repository at this point in the history
  • Loading branch information
hoxo-m committed Dec 6, 2024
1 parent ef5cbda commit dfdbc7f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/testthat/test-generate_setup_code.R
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ test_that("compute_reward fit well", {
df_expected <- data.frame(
linear = c(0.98473088, 1, 1, 0.98473088),
emax = c(0.97718847, 1, 1, 0.97718847),
sigEmax = c(0.9839088, 1, 1, 0.9839088),
sigEmax = c(0.9839088, 1, 1, 0.9839088), # MacOS: 0.983908858
row.names = optimization_metrics
)

Expand All @@ -75,7 +75,7 @@ test_that("compute_reward fit well", {
obj$optimization_metric <- optimization_metric
act <- obj$compute_reward(model_name, sim_doses, sim_resps)
expected <- df_expected[optimization_metric, model_name]
expect_equal(act, expected)
expect_equal(act, expected, tolerance = 1e-7)
}
}

Expand Down

0 comments on commit dfdbc7f

Please sign in to comment.