Skip to content

Commit 2646b0e

Browse files
committed
pass local tests
1 parent 56d927a commit 2646b0e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tests/testthat/_snaps/dist_quantiles.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# constructor returns reasonable quantiles
22

33
Code
4-
new_quantiles(rnorm(5), rnorm(5))
4+
new_quantiles(rnorm(5), c(-2, -1, 0, 1, 2))
55
Condition
66
Error in `new_quantiles()`:
77
! `quantile_levels` must lie in [0, 1].

tests/testthat/test-dist_quantiles.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
library(distributional)
22

33
test_that("constructor returns reasonable quantiles", {
4-
expect_snapshot(error = TRUE, new_quantiles(rnorm(5), rnorm(5)))
4+
expect_snapshot(error = TRUE, new_quantiles(rnorm(5), c(-2, -1, 0, 1, 2)))
55
expect_silent(new_quantiles(sort(rnorm(5)), sort(runif(5))))
66
expect_snapshot(error = TRUE, new_quantiles(sort(rnorm(5)), sort(runif(2))))
77
expect_silent(new_quantiles(1:5, 1:5 / 10))

0 commit comments

Comments
 (0)