2017-09-01 03:52:59 +00:00
|
|
|
package main
|
|
|
|
|
|
|
|
import "testing"
|
|
|
|
import . "github.com/smartystreets/goconvey/convey"
|
|
|
|
|
2018-04-17 08:04:15 +00:00
|
|
|
// TestAdd test Add func
|
2017-09-01 03:52:59 +00:00
|
|
|
func TestAdd(t *testing.T) {
|
|
|
|
Convey("test add", t, func() {
|
|
|
|
a := 3
|
|
|
|
b := 1
|
|
|
|
c := Add(a, b)
|
|
|
|
So(c, ShouldEqual, 4)
|
|
|
|
})
|
|
|
|
}
|