aboutsummaryrefslogtreecommitdiff
path: root/internal/caldata/of_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/caldata/of_test.go')
-rw-r--r--internal/caldata/of_test.go22
1 files changed, 22 insertions, 0 deletions
diff --git a/internal/caldata/of_test.go b/internal/caldata/of_test.go
index 91c9b59..086883a 100644
--- a/internal/caldata/of_test.go
+++ b/internal/caldata/of_test.go
@@ -85,3 +85,25 @@ func TestOFSundayCompleteReadings(t *testing.T) {
}
}
}
+
+func TestOFSeasonalFerials(t *testing.T) {
+ // Seasonal weekday ferials re-sourced from catholic-resources.org: an Easter
+ // weekday no longer contaminated, the Easter octave (was missing), and the
+ // date-based late-Advent days (Dec 17-24, keyed by date not by Advent week).
+ for _, tc := range []struct{ key, firstHas string }{
+ {"easter-3-mon-I", "Acts 6:8-15"}, // had 1 Cor 15 (contamination)
+ {"easter-octave-mon-I", "Acts 2:14"}, // was absent
+ {"advent-dec-17-I", "Genesis 49"},
+ {"advent-dec-24-I", "2 Samuel 7"},
+ } {
+ var first string
+ for _, r := range TemporalReadings("new", tc.key) {
+ if r.Part == "first" {
+ first = r.Citation
+ }
+ }
+ if !strings.Contains(first, tc.firstHas) {
+ t.Errorf("%s: first = %q, want containing %q", tc.key, first, tc.firstHas)
+ }
+ }
+}