diff --git a/pkg/lru/lru_test.go b/pkg/lru/lru_test.go index 8529eb6..f266192 100644 --- a/pkg/lru/lru_test.go +++ b/pkg/lru/lru_test.go @@ -1,8 +1,8 @@ package lru import ( - "fmt" "gitee.com/timedb/wheatCache/pkg/structure/stringx" + "github.com/stretchr/testify/require" "testing" ) @@ -16,5 +16,6 @@ func TestNewLRUCache(t *testing.T) { cache.Add("3", v3) cache.Add("1", v1) cache.Del() - fmt.Println(cache.Get("1")) + _, isTrue := cache.Get("1") + require.Equal(t, isTrue, true) } \ No newline at end of file