diff options
| author | Lukasz Kasprzak <lukas@labunix.xyz> | 2026-07-24 14:23:55 +0200 |
|---|---|---|
| committer | Lukasz Kasprzak <lukas@labunix.xyz> | 2026-07-24 14:23:55 +0200 |
| commit | a87f2fafbda90cc9eeb32ea856356c34e1d880b0 (patch) | |
| tree | 20d1a9ab2bca099e1fdf8afd6391321de1119b50 /internal/bible/bible_test.go | |
| parent | e54b24308e42addad396a13f9f53a60e5f6468d5 (diff) | |
| download | lectio-a87f2fafbda90cc9eeb32ea856356c34e1d880b0.tar.gz lectio-a87f2fafbda90cc9eeb32ea856356c34e1d880b0.zip | |
grb: strip SBLGNT apparatus markers (U+2E00–U+2E0D); render: show scripture ref in traditional headings; v0.12.0
Diffstat (limited to 'internal/bible/bible_test.go')
| -rw-r--r-- | internal/bible/bible_test.go | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/internal/bible/bible_test.go b/internal/bible/bible_test.go index a363d4d..804b8c4 100644 --- a/internal/bible/bible_test.go +++ b/internal/bible/bible_test.go @@ -29,6 +29,18 @@ func TestVerses(t *testing.T) { func hasPrefix(s, p string) bool { return len(s) >= len(p) && s[:len(p)] == p } +// TestGrbNoApparatusMarkers guards the corpus fix: the SBLGNT apparatus sigla +// (U+2E00–U+2E0D) were stripped from the Greek text. +func TestGrbNoApparatusMarkers(t *testing.T) { + for _, v := range Verses("grb", "Luke", 16) { + for _, r := range v.Text { + if r >= 0x2E00 && r <= 0x2E0D { + t.Fatalf("grb Luke 16:%d still has apparatus marker U+%04X: %q", v.Verse, r, v.Text) + } + } + } +} + // TestVul2Kings guards the corpus fix: 2 Kings was mislabeled "2 King" in the // Vulgate TSV, so bible.Verses("vul","2 Kings",...) returned nothing. func TestVul2Kings(t *testing.T) { |
