Skip to content

Commit

Permalink
tweak test
Browse files Browse the repository at this point in the history
  • Loading branch information
joshyam-k committed Jan 19, 2024
1 parent b7577be commit f2b26a0
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions tests/testthat/test-unit_zi.R
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,6 @@ result <- unit_zi(samp,
B = 5,
parallel = FALSE)

test_that("result is as expected", {
expect_equal(result$res$mse[2], 80.5, tolerance = 0.01)
expect_equal(result$res$mse[12], 144.4, tolerance = 0.01)
expect_equal(result$res$mse[36], 116.6, tolerance = 0.01)

expect_equal(result$res$est[8], 104.4, tolerance = 0.01)
expect_equal(result$res$est[17], 66.7, tolerance = 0.01)
})

test_that("result[[2]] is a df", {
expect_s3_class(result[[2]], "data.frame")
})
Expand Down

0 comments on commit f2b26a0

Please sign in to comment.