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

Convert expect_error() to expect_snapshot() #570

Merged
merged 2 commits into from
Aug 19, 2024

Conversation

KimLopezGuell
Copy link
Contributor

Fixed issue #552

@@ -6,5 +6,7 @@ test_that("encoding conversion works", {
})

test_that("check encoding argument", {
expect_error(str_conv("A", c("ISO-8859-1", "ISO-8859-2")), "single string")
expect_snapshot(error = TRUE,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When there's a single expression to test could you please fit on one line like this?

expect_snapshot(str_conv("A", c("ISO-8859-1", "ISO-8859-2")), error = TRUE)

@hadley hadley merged commit c8c7f25 into tidyverse:main Aug 19, 2024
13 checks passed
@hadley
Copy link
Member

hadley commented Aug 19, 2024

Thank you!

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

Successfully merging this pull request may close these issues.

2 participants