From 78ee2048775c115e8db91fe741f6fbba6328fc59 Mon Sep 17 00:00:00 2001 From: yu_lang <534013339@qq.com> Date: Sun, 22 Aug 2021 16:57:42 +0800 Subject: [PATCH] test(test_by_yulang):add test --- pkg/lru/lrutest/lrutest_test.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 pkg/lru/lrutest/lrutest_test.go diff --git a/pkg/lru/lrutest/lrutest_test.go b/pkg/lru/lrutest/lrutest_test.go new file mode 100644 index 0000000..9a61670 --- /dev/null +++ b/pkg/lru/lrutest/lrutest_test.go @@ -0,0 +1,14 @@ +package lrutest + +import ( + "github.com/stretchr/testify/require" + "testing" +) + +func TestTest(t *testing.T) { + ts , err := Test(2) + require.NoError(t, err) + require.Regexp(t, '\d', ts) + + +} \ No newline at end of file