Unit tests WIP.

Currently, the tests only spit out stuff for me to look at.
This commit is contained in:
Benjamin A. Shelton 2026-10-03 15:21:02 -06:00
commit f3b8de7c3f
Signed by: zancarius
GPG key ID: 8BD42DBD6C337E01

View file

@ -76,3 +76,18 @@ func Test_ChapterJSON(t *testing.T) {
t.Error(".")
}
func Test_VerseFilter(t *testing.T) {
ch, err := loadScripture("../../data/translations/bsb/GEN/1/chapter.json")
if err != nil {
t.Fatal(err)
}
fmt.Println(ch.FilterVerses(1, 2))
v := ch.FilterVerses(27, 27)
fmt.Println(v)
v.SkipLineBreaks = true
fmt.Println(v)
t.Error(".")
}