From f0b0030b8e6cc1dedce14451e20279d19c7c1ee7 Mon Sep 17 00:00:00 2001 From: steden <1470804@qq.com> Date: Fri, 8 Nov 2024 13:17:36 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=8D=95=E5=85=83=E6=B5=8B?= =?UTF-8?q?=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- test/operator_test.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 test/operator_test.go diff --git a/test/operator_test.go b/test/operator_test.go new file mode 100644 index 0000000..eb0e35f --- /dev/null +++ b/test/operator_test.go @@ -0,0 +1,14 @@ +package test + +import ( + "testing" + + "github.com/farseer-go/utils/operator" + "github.com/stretchr/testify/assert" +) + +// CopyFolder +func TestSum(t *testing.T) { + num := operator.GetSum(34) + assert.Equal(t, 7, num) +}