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

Change Decode's return type to IReadOnlyList #21

Merged
merged 2 commits into from
Sep 9, 2023
Merged

Conversation

aradalvand
Copy link
Collaborator

This avoids the memory allocation that .ToArray() entailed.

This avoids the memory allocation that `.ToArray()` entailed.
`ShouldBeEquivalentTo` seems to fail to work as expected when the
collection types are different (e.g. `int[]` and `IReadOnlyList<int>`),
we should've actually always used `ShouldBe`:
https://docs.shouldly.org/documentation/equality/shouldbe#enumerables
@aradalvand aradalvand merged commit 83460d6 into main Sep 9, 2023
1 check passed
@aradalvand aradalvand deleted the decode-return-type branch September 10, 2023 12:43
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.

1 participant