Skip to content

Commit

Permalink
Add test file
Browse files Browse the repository at this point in the history
Signed-off-by: Wenqi Qiu <wenqiq@vmware.com>
  • Loading branch information
wenqiq committed Oct 12, 2022
1 parent 672218f commit 2da14f2
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions util/util_test.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
package util

import (
"testing"

"github.com/stretchr/testify/assert"
)

func add(a, b int) int {
return a + b
}

func TestAdd(t *testing.T) {
assert.Equal(t, 3, add(1, 2))
}

0 comments on commit 2da14f2

Please sign in to comment.