未验证 提交 c24069bc 编写于 作者: P Phodal HUANG

fix: fix test

上级 65f600e3
......@@ -21,3 +21,10 @@ brew install dep
```
TBD.
## Test
```
go get github.com/onsi/ginkgo
go get github.com/onsi/gomega
```
\ No newline at end of file
package main_test
import (
"testing"
. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"
)
func TestLearnGo(t *testing.T) {
RegisterFailHandler(Fail)
RunSpecs(t, "LearnGo Suite")
}
package imp_test
package main_test
import (
. "./"
. "./imp"
. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"
)
......@@ -9,7 +9,7 @@ import (
var _ = Describe("Add", func() {
Context("Basic", func() {
It("should return correct result", func() {
Expect(Add(1, 2)).Should(Equal(3))
Expect(Add(1, 2)).Should(Equal(uint64(3)))
})
})
})
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册