You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
package main
|
|
|
|
import "testing"
|
|
import . "github.com/smartystreets/goconvey/convey"
|
|
|
|
// TestAdd test Add func
|
|
func TestAdd(t *testing.T) {
|
|
Convey("test add", t, func() {
|
|
a := 3
|
|
b := 1
|
|
c := Add(a, b)
|
|
So(c, ShouldEqual, 4)
|
|
})
|
|
}
|