Exemplo n.º 1
0
func TestChapterGetByChapterId(t *testing.T) {
	c := readhacker.Chapter{}

	chapter := c.GetByChapterId(int64(1))

	if chapter == nil {
		t.Errorf("chapter is nil pointer")
	} else {
		fmt.Printf(chapter.ChapterName)
		fmt.Printf(chapter.ChapterLink)
		fmt.Printf(chapter.Content)
		//fmt.Printf("%s", chapter.Content)
	}
}