func TestChapterPreviousChapter(t *testing.T) { c := readhacker.Chapter{} if c.PreviousChapter(2, 1) == nil { t.Error("previous chapter is nil") } }