-
Notifications
You must be signed in to change notification settings - Fork 189
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
Make type.character error for NA_character_ #566
Make type.character error for NA_character_ #566
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good! My main comment is that I think you can simplify your code a little.
Could you please also add a news bullet to the top of NEWS.md
? It should briefly describe the change and end with (@yourname, #issuenumber)
.
tests/testthat/test-modifiers.R
Outdated
|
||
test_that("useful error message for vector that includes NAs", { | ||
expect_snapshot(error = TRUE, { | ||
type(c("a", "b", NA_character_, "c")) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great test!
Co-authored-by: Hadley Wickham <hadley@posit.co>
Thanks for working on this! I hope you had fun at TDD 😁 |
Fixes #546