15 lines
214 B
Go
15 lines
214 B
Go
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))
|
|
}
|