Skip to content

Commit

Permalink
Added a couple more unit tests (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
wleoncio committed Jun 25, 2024
1 parent 30c9c40 commit 66befd2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/testthat/test-parallel.R
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,10 @@ fit_C_parallel <- mad_wrap(legacy = FALSE, parallel = TRUE, pal = FALSE)
test_that("results are identical after parallelization", {
expect_identical(fit_R_pal, fit_R)
expect_identical(fit_R_parallel, fit_R)
expect_identical(fit_R_pal, fit_C_parallel)
# expect_identical(fit_C_pal, fit_C) # FIXME: not identical
# expect_identical(fit_C_parallel, fit_C) # FIXME: not identical
expect_identical(fit_C_pal, fit_C_parallel)
})

test_that("parallel and pal cannot be both true", {
Expand Down

0 comments on commit 66befd2

Please sign in to comment.