You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
290 B

package sieve
import "testing"
func TestSieveCache(t *testing.T) {
cache := NewCache(3)
cache.Access("A")
cache.Access("B")
cache.Access("C")
cache.Access("D")
cache.Access("B")
cache.Access("E")
cache.Access("A")
cache.Range(func(v string) bool {
t.Log(v)
return true
})
}