Skip to content

Commit

Permalink
Removing failing test
Browse files Browse the repository at this point in the history
sample() can return the input vector occasionally, not sure how to guarantee avoidance
  • Loading branch information
wkumler committed Dec 12, 2023
1 parent 3309b84 commit f264345
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/testthat/test_extras.R
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ test_that("trapz works as expected", {
x_vals <- 1:10
y_vals <- runif(10)
expect_equal(trapz(x_vals, y_vals), trapz(x_vals, rev(y_vals)))
expect_false(trapz(x_vals, y_vals)==trapz(x_vals, sample(y_vals)))
# expect_false(trapz(x_vals, y_vals)==trapz(x_vals, sample(y_vals)))

expect_error(trapz(10))
expect_error(trapz(1, 1:10))
Expand Down

0 comments on commit f264345

Please sign in to comment.