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.go8
1 files changed, 6 insertions, 2 deletions
diff --git a/internal/caldata/of_test.go b/internal/caldata/of_test.go
index 7bc2ce1..b515a28 100644
--- a/internal/caldata/of_test.go
+++ b/internal/caldata/of_test.go
@@ -1,6 +1,7 @@
package caldata
import (
+ "strings"
"testing"
"time"
@@ -22,8 +23,11 @@ func TestOFReadingsByCycle(t *testing.T) {
gospel = r.Citation
}
}
- if gospel == "" || gospel[:4] != "Matt" {
- t.Fatalf("christ-the-king-A gospel = %q, want Matt…", gospel)
+ // The gospel of Christ the King (cycle A) is Matthew 25:31-46. The citation
+ // may spell Matthew as "Mat" (niedziela/ToEnglishRef) or "Matt" (seed); both
+ // resolve to Matthew via books.ini.
+ if !strings.HasPrefix(gospel, "Mat 25") && !strings.HasPrefix(gospel, "Matt 25") {
+ t.Fatalf("christ-the-king-A gospel = %q, want Matthew 25…", gospel)
}
}