From f5afb407beab795e371c36a3229e991e48c366fe Mon Sep 17 00:00:00 2001 From: Lukasz Kasprzak Date: Mon, 27 Jul 2026 12:33:47 +0200 Subject: test(calendar): regression oracle vs calapi 2020-2040 (0 season mismatches) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Caught + fixed an Advent-start bug: anchor on Christmas Eve, not Dec 25, so years where Dec 25 is a Sunday don't lose the first week of Advent. Rank-class diffs (324) are informational — the initial sanctoral dataset is partial. --- internal/calendar/calendar.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'internal/calendar/calendar.go') diff --git a/internal/calendar/calendar.go b/internal/calendar/calendar.go index 3227a5a..77d37f9 100644 --- a/internal/calendar/calendar.go +++ b/internal/calendar/calendar.go @@ -41,7 +41,7 @@ func Compute(date time.Time, sel Selection, layers []Layer) LiturgicalDay { obs, others := pick(cands) day := LiturgicalDay{ Date: date, Season: td.Season, Week: td.Week, Weekday: date.Weekday(), - Observed: obs.Cel, Colour: colourOf(obs, td), + Observed: obs.Cel, Colour: colourOf(obs, td), ObservedBand: precedence(obs), SundayCycle: sundayCycle(liturgicalYearStart(date)), WeekdayCycle: weekdayCycle(liturgicalYearStart(date).Year() + 1), } -- cgit v1.3