Skip to content

Commit

Permalink
添加单元测试
Browse files Browse the repository at this point in the history
  • Loading branch information
steden committed Nov 8, 2024
1 parent 5f5580d commit f0b0030
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions test/operator_test.go
Original file line number Diff line number Diff line change
@@ -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)
}

0 comments on commit f0b0030

Please sign in to comment.