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_setequal error message mixes up expected and actual #2023

Open
bdforbes opened this issue Nov 9, 2024 · 1 comment
Open

expect_setequal error message mixes up expected and actual #2023

bdforbes opened this issue Nov 9, 2024 · 1 comment

Comments

@bdforbes
Copy link

bdforbes commented Nov 9, 2024

The error message from expect_setequal seems to mix up expected and actual, as illustrated by this example:

expect_setequal(character(), c("A", "B", "C"))

Error: character() (actual) and c("A", "B", "C") (expected) don't have the same values.
* Only in actual: "A", "B", "C"

It should read

Only in expected: "A", "B", "C".

I am using {testthat} version 3.2.1.1.

@mcol
Copy link
Contributor

mcol commented Dec 1, 2024

This is a duplicate of #1912, which has been fixed last month.

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

2 participants