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

expect_true() and expect_false() fail with symbols #1996

Closed
lionel- opened this issue Oct 15, 2024 · 0 comments · Fixed by #2011
Closed

expect_true() and expect_false() fail with symbols #1996

lionel- opened this issue Oct 15, 2024 · 0 comments · Fixed by #2011
Labels
bug an unexpected problem or unintended behavior expectation 🙀

Comments

@lionel-
Copy link
Member

lionel- commented Oct 15, 2024

And anything that doesn't coerce to a vector?

expect_true(quote(foo))
#> Error in `as.vector()`:
#> ! cannot coerce type 'symbol' to vector of type 'any'
#> Hide Traceback
#>     ▆
#>  1. └─testthat::expect_true(quote(foo))
#>  2.   └─base::as.vector(act$val)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug an unexpected problem or unintended behavior expectation 🙀
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants