package log import ( "strconv" "testing" ) func TestGetLogHistory(t *testing.T) { list := newLogHistoryList(10) for i := 0; i < 10; i++ { list.Add("test" + strconv.Itoa(i)) } t.Log(list.GetTailsOf(20)) }