Closed risteli closed 5 years ago
Thanks for bug and PR. Sorry it's taken so long to review this. I posted a comment about one of the tests.
@daniel-nichter Can this be revisited? I would love to have this in the library. I can take over this PR as well.
Finally merged. :-) Better late than never.
When creating tests on sliced values, since the slice equality is based only on pointers it will fail whenever both slices are from the same vector, thus sharing the same pointer, but of different lengths. This adds a test for the specific condition, and fixes the equality scenario.