Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test failure with dev testthat #46

Open
hadley opened this issue Sep 20, 2021 · 0 comments
Open

Test failure with dev testthat #46

hadley opened this issue Sep 20, 2021 · 0 comments

Comments

@hadley
Copy link

hadley commented Sep 20, 2021

This test now fails:

test_that("force check for negative gcd", {
  # force check for negative gcd
  expect_warning(
    expect((extended.gcd( c(-35, -35), c(-31, -31))$gcd) >= c(0,0), "Failure, negative list elements not handled"),
    "the condition has length > 1 and only the first element will be used", fixed = TRUE)
})

I would fix it, but I can't quite figure out what you're trying to do — I think you accidentally used expect() instead of something else, but I can't recreate the errors or warnings you seem to be expected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant