aboutsummaryrefslogtreecommitdiff
path: root/internal/bible/ref_test.go
diff options
context:
space:
mode:
authorLukasz Kasprzak <lukas@labunix.xyz>2026-07-27 14:30:55 +0200
committerLukasz Kasprzak <lukas@labunix.xyz>2026-07-27 14:30:55 +0200
commit3aa90a9b8d7623a70e2d3a505bea080ba37c1d67 (patch)
treede6fc7989204cb8c90b28999b0a0c1d1248a93a8 /internal/bible/ref_test.go
parentaa77877d70e7ba5e2c19d970a555940c083e5de8 (diff)
downloadlectio-3aa90a9b8d7623a70e2d3a505bea080ba37c1d67.tar.gz
lectio-3aa90a9b8d7623a70e2d3a505bea080ba37c1d67.zip
data(bible): close the deuterocanon gap in vul + drb corpora
Added Tobit, Judith, Wisdom, Sirach, Baruch to vul (5) and those + 1-2 Maccabees to drb (7), from get.bible's public-domain Clementine Vulgate / Douay-Rheims (Clementine versification = the EF citation basis). EF and OF deuterocanonical citations (e.g. the Assumption's Judith epistle) now resolve against the corpora. Flipped the gap-documenting test to assert resolution.
Diffstat (limited to 'internal/bible/ref_test.go')
-rw-r--r--internal/bible/ref_test.go8
1 files changed, 6 insertions, 2 deletions
diff --git a/internal/bible/ref_test.go b/internal/bible/ref_test.go
index 3a661ad..9473123 100644
--- a/internal/bible/ref_test.go
+++ b/internal/bible/ref_test.go
@@ -25,7 +25,11 @@ func TestLookup(t *testing.T) {
if last.Verse != 18 {
t.Errorf("last verse = %d want 18", last.Verse)
}
- if _, m := Lookup("vul", "Wisdom 3:1"); len(m) == 0 {
- t.Error("vul lacks Wisdom; expected a missing entry")
+ // Deuterocanon now present in vul + drb (Clementine Vulgate / Douay-Rheims).
+ if vs, m := Lookup("vul", "Wisdom 3:1"); len(m) != 0 || len(vs) == 0 {
+ t.Errorf("vul Wisdom 3:1: missing=%v verses=%d (deuterocanon should resolve)", m, len(vs))
+ }
+ if vs, m := Lookup("drb", "Judith 13:22"); len(m) != 0 || len(vs) == 0 {
+ t.Errorf("drb Judith 13:22: missing=%v verses=%d (deuterocanon should resolve)", m, len(vs))
}
}