diff options
| author | Lukasz Kasprzak <lukas@labunix.xyz> | 2026-08-11 20:01:31 +0200 |
|---|---|---|
| committer | Lukasz Kasprzak <lukas@labunix.xyz> | 2026-08-11 20:01:54 +0200 |
| commit | 8de560db7fb1b7b7d3ca93285068c6a4214e0bff (patch) | |
| tree | 3f19ec479846ec858dcb09ac85526a0d3e77dace /test/test_colitur.ml | |
| parent | 6436509d6b599b7d7c6467bd39c8090cb9634889 (diff) | |
| download | colitur-8de560db7fb1b7b7d3ca93285068c6a4214e0bff.tar.gz colitur-8de560db7fb1b7b7d3ca93285068c6a4214e0bff.zip | |
kernel(calendar): the year is the primitive, the day is derived
Transfers make per-date resolution impossible to do correctly: resolving 25
March can push a feast onto 26 March, and RG 97-98 has coinciding I-class
feasts transfer in table order, which needs global knowledge. So year computes
a whole liturgical year in one pass and day indexes into it. Pure, no cache, no
mutable state.
This commit resolves each day but does not yet place deferred transfers; they
are recorded with a reason. Task 6 adds the placement pass.
Diffstat (limited to 'test/test_colitur.ml')
| -rw-r--r-- | test/test_colitur.ml | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/test_colitur.ml b/test/test_colitur.ml index 08282e6..a97e35c 100644 --- a/test/test_colitur.ml +++ b/test/test_colitur.ml @@ -2,4 +2,5 @@ let () = Alcotest.run "colitur" [ Test_date.suite; Test_computus.suite; Test_colour.suite; Test_slug.suite; Test_names.suite; - Test_overlay.suite; Test_temporal_ef.suite; Test_validate.suite; Test_precedence.suite ] + Test_overlay.suite; Test_temporal_ef.suite; Test_validate.suite; Test_precedence.suite; + Test_calendar.suite ] |
