summaryrefslogtreecommitdiff
path: root/test/cli.t
diff options
context:
space:
mode:
Diffstat (limited to 'test/cli.t')
-rw-r--r--test/cli.t50
1 files changed, 50 insertions, 0 deletions
diff --git a/test/cli.t b/test/cli.t
index 4ae116f..8671694 100644
--- a/test/cli.t
+++ b/test/cli.t
@@ -199,6 +199,56 @@ A year outside the supported domain is rejected (exit 2):
colitur: year 1000 out of range 1583..9999
[2]
+Task 5 (2026-08-25-colitur-of-phases-3-5): `--rite ef|of` on `day`/`readings`.
+Default stays ef -- every invocation above, written before this flag existed,
+must be byte-identical to what it printed before, so this is asserted
+directly rather than assumed: `--rite ef` is a no-op, and omitting the flag
+entirely resolves to the exact same thing.
+
+ $ colitur day 2026 > /tmp/rite-day-default.out
+ $ colitur day --rite ef 2026 > /tmp/rite-day-ef.out
+ $ cmp /tmp/rite-day-default.out /tmp/rite-day-ef.out && echo identical
+ identical
+ $ colitur readings 2026 > /tmp/rite-readings-default.out
+ $ colitur readings --rite ef 2026 > /tmp/rite-readings-ef.out
+ $ cmp /tmp/rite-readings-default.out /tmp/rite-readings-ef.out && echo identical
+ identical
+ $ colitur day --rite ef 2026 --raw | head -1
+ 2026-01-01 thursday christmastide - ef-circumcision class-1 white
+
+The OF rite resolves too, same two commands, its own vocabulary:
+
+ $ colitur day --rite of 2026 | wc -l
+ 365
+ $ colitur day --rite of 2026 | head -1
+ 2026-01-01 thursday christmas - of-mary-mother-of-god sollemnitas white
+ $ colitur day --rite of 2026 | grep -c '^2026-12-25 '
+ 1
+ $ colitur day --rite of 2026 | grep '^2026-12-25 '
+ 2026-12-25 friday christmas - of-nativity sollemnitas white
+
+ $ colitur readings --rite of 2026 | wc -l
+ 365
+ $ colitur readings --rite of 2026 | head -1
+ 2026-01-01 of-mary-mother-of-god | Num 6:22-27 | Luc 2:16-21
+
+An unrecognised --rite value is a usage error, not a silent fallback to ef
+(exit 2):
+
+ $ colitur day --rite tridentine 2026
+ colitur: unknown --rite "tridentine" (expected "ef" or "of")
+ [2]
+
+`--rite` is refused, not silently ignored, on every command besides
+day/readings (exit 2):
+
+ $ colitur easter --rite of 2026
+ colitur: --rite has no effect on `easter`; refusing rather than ignoring it
+ [2]
+ $ colitur rubrics --rite of 2026
+ colitur: --rite has no effect on `rubrics`; refusing rather than ignoring it
+ [2]
+
Rubrics (Task 4, celebrant-rubrics-phase1): the day's own Mass formulary, one
row per day: date, the formulary's slug (which Mass is actually said, not
always the day's own), and how that was decided