expanded date addition test coverage and added optimized snapshot test #7315
+152
−0
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
added updates to #7215
hi i have updated the date addition test suite with a more comprehensive set of cases based on earlier discussion.
the main date_addition_snapshot.rs test now covers a much wider range of dates (iso 2000–2004) so leap years, leap days, and month boundaries are properly executed.
this produces fairly large snapshot files but I believe it gets us closer to the complete coverage we were aiming for.
i also added date_optimized_snapshot.rs, which doesn’t produce snapshots but gives a compact human readable summary of the chosen date and duration ranges.
what i thought was the idea to make it easier to inspect the test configuration without scrolling through thousands of snapshot lines.
if this helper isn’t needed or could be structured better i am totally open to adjusting or removing it. and all the tests passed locally.
i am not fully sure that these changes do exactly what you had in mind, so please feel free to suggest changes. i will update things as said.
happy to revise anything here to better match expectations.