Revert ordinary-Sunday Semiduplex to transferring, per direct instruction
Deploy / deploy (push) Successful in 1m9s
Deploy / deploy (push) Successful in 1m9s
Keeps Simplex commemorating in place, but a Semiduplex feast on an ordinary Sunday goes back to transferring off to the next open day — this app's own design choice, not a correction against a reference engine. The transfer mechanism is already generic: this file's `decideOccurrence` only signals "couldn't hold onto this candidate" for the day itself; calendar/index.ts's resolveDay is what independently checks each neighboring day's own native occurrence for an incoming transfer and claims it — no separate lookback logic needed. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
@@ -32,25 +32,16 @@ describe('July sanctoral pull (first pass)', () => {
|
||||
]);
|
||||
});
|
||||
|
||||
it('St. Apollinaris (Semiduplex) is commemorated on his own Sunday rather than transferring, so the Vigil of St. James the next day is unaffected', () => {
|
||||
// Corrects an earlier, unverified "transfer+collision" assumption —
|
||||
// live-verified (Divino Afflatu 1954): a Semiduplex saint landing on
|
||||
// an ordinary Sunday is commemorated right there, not pushed forward
|
||||
// (see calendar/commemorations.ts's `ordinary-sunday` case). 2028's
|
||||
// Jul 23 is a Sunday.
|
||||
const sunday = resolveDay('2028-07-23');
|
||||
expect(sunday.winner).toEqual({ kind: 'temporal', id: 'post-pentecost-07' });
|
||||
expect(sunday.commemorations).toEqual([
|
||||
{ kind: 'sanctoral', id: 'st-apollinaris', name: 'St. Apollinaris, Bishop and Martyr', rank: 'semiduplex' },
|
||||
{ kind: 'sanctoral', id: 'st-liborius', name: 'St. Liborius, Bishop and Confessor', rank: 'simplex' },
|
||||
]);
|
||||
// The Vigil of St. James wins its own day outright (Vigil outranks
|
||||
// Simplex), with St. Christina commemorated -- no incoming transfer
|
||||
// to contend with any more.
|
||||
it('the Vigil of St. James resolves alongside its own commemorated saint, distinct from St. James Day itself', () => {
|
||||
const day = resolveDay('2028-07-24');
|
||||
expect(day.winner).toEqual({ kind: 'sanctoral', id: 'vigil-of-st-james', name: 'Vigil of St. James the Greater', rank: 'vigil' });
|
||||
expect(day.commemorations).toEqual([
|
||||
{ kind: 'sanctoral', id: 'st-christina', name: 'St. Christina, Virgin and Martyr', rank: 'simplex' },
|
||||
expect(day.winner.kind).toBe('sanctoral');
|
||||
// 2028's Jul 23 is a Sunday, so St. Apollinaris (Semiduplex) transfers
|
||||
// forward into this day and wins the collision against the Vigil/St.
|
||||
// Christina — per direct instruction, a Semiduplex feast on an
|
||||
// ordinary Sunday transfers rather than being commemorated in place.
|
||||
expect(day.commemorations.map((c) => (c.kind === 'sanctoral' ? c.id : null)).sort()).toEqual([
|
||||
'st-christina',
|
||||
'vigil-of-st-james',
|
||||
]);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user