From f3b8de7c3f9f0ad415c2a7a910d96b2b61f72cf2 Mon Sep 17 00:00:00 2001 From: "Benjamin A. Shelton" Date: Sat, 3 Oct 2026 15:21:02 -0600 Subject: [PATCH] Unit tests WIP. Currently, the tests only spit out stuff for me to look at. --- internal/bible/types_test.go | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/internal/bible/types_test.go b/internal/bible/types_test.go index 3608718..fd36a94 100644 --- a/internal/bible/types_test.go +++ b/internal/bible/types_test.go @@ -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(".") +}