Repository navigation
test: a second calendar seed for the refusals, and a join on a period (#451) - #456
Merged
Merged
Conversation
…#451) - calendar-iso-week-53-of-a-52-week-year-rolls-over.patch lets the week check accept one week too many, so IsoWeek(2025, 53) rolls over to 2026-W01. It fails CalendarFactories_OverAnArgumentMemoryRefuses_RaiseInPostgres alone: the half of CalendarFactoryParityTests no seed proved. - CalendarFactories_AsAJoinKey_PairTheRowsMemoryPairs joins a date form against an integer form (Month, Quarter, Year) and requires the first and last periods to find a partner. E76's claim names the join; the docs already promised it. - The existing seed lost its doubled diff --git line, and its Fails line names the join, which it now also fails. `dotnet run tools/oracles.cs seeds calendar`: every seed is caught. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Oct 25, 2026
Closed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Closes #451
Stacked on #455 (#450): both edit claim E76, on adjacent lines. Merge #455 first.
Problem
CalendarFactoryParityTestshad one seed, and it proves only the extremes half. Nothing proved the refusal half,CalendarFactories_OverAnArgumentMemoryRefuses_RaiseInPostgres. That half is the one most likely to go vacuous: it accepts three SQLSTATEs, and itsWhereform passes if any row raises.docs/efcore.md#what-runs-wheresays "filter, join and sort by it", but no test covered a join.diff --gitline.Change
test/oracles/seeds/calendar-iso-week-53-of-a-52-week-year-rolls-over.patch(Oracles: CalendarFactoryParityTests). It changesweek <= weekstoweek <= weeks + 1in the ISO week check, soIsoWeek(2025, 53)rolls over to 2026-W01.CalendarFactories_AsAJoinKey_PairTheRowsMemoryPairs. It joinsMonth(x.Day)withMonth(y.Year, y.Month), and does the same forQuarterandYear. The pairs must equal memory's, and the rows atDateOnly.MinValueandMaxValuemust find a partner. E76's claim now names the join.Fails:line now names the join, which it also fails.Tests
On PostgreSQL 16, with
main's RC2 SDK:CalendarFactories_OverAnArgumentMemoryRefuses_RaiseInPostgresand nothing else (1 of 4).InEveryQueryFormand the new join test (2 of 4); the join gives 42 pairs where memory gives 67.dotnet run tools/oracles.cs seeds calendarreportsevery seed is caught.🤖 Generated with Claude Code