Unit tests WIP.
Currently, the tests only spit out stuff for me to look at.
This commit is contained in:
parent
6a5ee17082
commit
f3b8de7c3f
1 changed files with 15 additions and 0 deletions
|
|
@ -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(".")
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue