-
Notifications
You must be signed in to change notification settings - Fork 340
Closed
Labels
bugan unexpected problem or unintended behavioran unexpected problem or unintended behaviorconditions
Milestone
Description
When expect_setequal fails, the labels are reversed:
Only in
expected: {values that are only in the object}
Only inactual: {values that are only in the expected}
Test case:
testthat::expect_setequal(object = 'actual', expected = 'expected')
Error: sample(c("actual", letters)) (`actual`) and sample(c("expected", letters)) (`expected`) don't have the same values.
* Only in `expected`: "actual"
* Only in `actual`: "expected"
A more complex test case:
testthat::expect_setequal(
object = sample(c('actual', letters)),
expected = sample(c('expected', letters)))
...gives the same result.
testthat 3.2.1.1 Windows binary R 4.2.2
AlexBainton, mmoisse and reedacartwright
Metadata
Metadata
Assignees
Labels
bugan unexpected problem or unintended behavioran unexpected problem or unintended behaviorconditions