Skip to content

Commit dcca301

Browse files
dajmcdondsweber2
authored andcommitted
rename tests
1 parent 7a87ae6 commit dcca301

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/testthat/test-dist_quantiles.R renamed to tests/testthat/test-quantile_pred.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ test_that("single quantile_pred works, quantiles are accessible", {
1111
)
1212

1313
Q <- stats::splinefun(c(.2, .4, .5, .6, .8), 1:5, method = "hyman")
14-
expect_equal(quantile(z, c(.3, .7)), Q(c(.3, .7)))
14+
expect_equal(quantile(z, c(.3, .7)), matrix(Q(c(.3, .7)), nrow = 1))
1515
expect_identical(
1616
extrapolate_quantiles(z, c(.3, .7), middle = "linear"),
1717
hardhat::quantile_pred(matrix(c(1, 1.5, 2, 3, 4, 4.5, 5), nrow = 1), 2:8 / 10)
@@ -100,5 +100,5 @@ test_that("arithmetic works on quantiles", {
100100
expect_identical(dstn / 4, dstn2)
101101
expect_identical((1 / 4) * dstn, dstn2)
102102

103-
expect_error(sum(dstn))
103+
expect_snapshot(error = TRUE, sum(dstn))
104104
})

0 commit comments

Comments
 (0)