Closed jerel closed 3 months ago
Best I can tell the test failures are unrelated to my changes. Looks like a Deno failure perhaps?
Thanks for the PR. Hoping to have a look soon
Any luck with deno?
@jerel This was released with serde-generate v0.26.0
Thanks for you patience!
@ma2bd thanks!
Summary
In the case of
Option<Vec<_>>
the generated Dart was not usinglistEquals(field, other.field)
to check for equality like it does forVec<_>
because the match statement was checkingOption
and falling through to the default case offield == other.field
.Test Plan
The test_utils.rs data structures didn't include a case where a vec was optional. This PR adds a field to demonstrate that case. This PR also includes test code which verifies that the generated Dart code is now correct.