Skip to content

Commit

Permalink
Added a unit test that checks that interval_coverage_deviation (the m…
Browse files Browse the repository at this point in the history
…etric giving an error originally) is not NA
  • Loading branch information
jhellewell14 authored and seabbs committed Jan 5, 2024
1 parent 15fce2b commit 0b6853f
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/testthat/test-utils_data_handling.R
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,16 @@ test_that("sample_to_quantiles works", {

})

test_that("sample_to_quantiles issue 557 fix", {

out <- example_integer %>%
sample_to_quantile(
quantiles = c(0.01, 0.025, seq(0.05, 0.95, 0.05), 0.975, 0.99)
) %>%
score()

expect_equal(any(is.na(out$interval_coverage_deviation)), FALSE)
})


test_that("sample_to_range_long works", {
Expand Down

0 comments on commit 0b6853f

Please sign in to comment.