From 29c5aca40d2a91260b5ab4d6d0f4fc32842a949c Mon Sep 17 00:00:00 2001 From: HuangJiaLuo <1820799930@qq.com> Date: Mon, 4 Oct 2021 11:21:55 +0800 Subject: [PATCH] test(lru): update test --- pkg/lru/lru_test.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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